{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "%load_ext autoreload\n",
    "%autoreload 2\n",
    "\n",
    "\n",
    "import sys\n",
    "sys.path.append(\"..\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The goal of this notebook is to evaluate the triplets returned by iText2KG against human-extracted triplets. \n",
    "\n",
    "To achieve this, we have enhanced the music and computer science datasets curated by Othmane et al. (Kabal, Othmane, et al. \"Enhancing Domain-Independent Knowledge Graph Construction through OpenIE Cleaning and LLMs Validation.\" International Conference on Knowledge-Based and Intelligent Information & Engineering Systems, 2024) by grouping triplets based on similar sentences and extracting triplets using iText2KG.\n",
    "\n",
    "Additionally, we incorporated factoids (Chen, Tong, et al. \"Dense x retrieval: What retrieval granularity should we use?\" arXiv preprint arXiv:2312.06648, 2023) using GPT-4o and re-extracted triplets from these factoids with iText2KG. The aim is to compare triplets extracted from raw documents (using iText2KG) and factoids (using iText2KG) against human-extracted triplets.\n",
    "\n",
    "There is no need to re-run all cells, as the datasets are available in the datasets/curated folder."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Loading the datasets\n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd \n",
    "\n",
    "music = pd.read_excel(\"GS_Music.xlsx\")\n",
    "cs = pd.read_excel(\"GS_CS-corpus.xlsx\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## LLM Model and Embeddings Model\n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "from langchain_openai import ChatOpenAI, OpenAIEmbeddings\n",
    "\n",
    "openai_api_key = \"sk-##\"\n",
    "\n",
    "openai_llm_model = llm = ChatOpenAI(\n",
    "    api_key = openai_api_key,\n",
    "    model=\"gpt-4o\",\n",
    "    temperature=0,\n",
    "    max_tokens=None,\n",
    "    timeout=None,\n",
    "    max_retries=2,\n",
    ")\n",
    "\n",
    "openai_embeddings_model = OpenAIEmbeddings(\n",
    "    api_key = openai_api_key ,\n",
    "    model=\"text-embedding-3-large\",\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\Users\\yassir.lairgi\\Documents\\Projects\\iText2KG\\venv-test\\Lib\\site-packages\\pydantic\\_internal\\_generate_schema.py:547: UserWarning: <built-in function array> is not a Python type (it may be an instance of an object), Pydantic will allow any object with no validation since we cannot even enforce that the input is an instance of the given type. To get rid of this error wrap the type with `pydantic.SkipValidation`.\n",
      "  warn(\n"
     ]
    }
   ],
   "source": [
    "from itext2kg import iText2KG"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "itext2kg = iText2KG(llm_model=openai_llm_model, embeddings_model=openai_embeddings_model)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Preprocessing of the two datasets, grouping the phrases and triplets. \n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Group by Sentences and aggregate\n",
    "grouped_cs = cs.groupby('Sentences').agg({\n",
    "    'Sentences': \"first\",  # Join sentences with a space\n",
    "    'Triplet': lambda x: '; '.join(x),  # Join triplets as strings with a semicolon\n",
    "    'Topic': 'first',  # Keep the first topic\n",
    "    'Annotator 1': 'first',  # Keep the first annotator\n",
    "    'Annotator 2': 'first',  # Keep the first annotator\n",
    "    'Ttiple_id': 'first'  # Keep the first triplet_id\n",
    "}).reset_index(drop=True)  # Avoid resetting the index with Sentences\n",
    "\n",
    "# Rename columns to reflect the aggregated data\n",
    "grouped_cs.rename(columns={\n",
    "    'Sentences': 'Combined_Sentences',\n",
    "    'Triplet': 'Combined_Triplets'\n",
    "}, inplace=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Group by Sentences and aggregate\n",
    "music[\"Triplet\"] = music.apply(lambda row: f\"({row['Subject']}, {row['Predicate']}, {row['Object']})\", axis=1)\n",
    "\n",
    "grouped_music = music.groupby('Sentences').agg({\n",
    "    'Sentences': \"first\",  # Join sentences with a space\n",
    "    'Triplet': lambda x: '; '.join(x),  # Join triplets as strings with a semicolon\n",
    "    'Topic': 'first',  # Keep the first topic\n",
    "    'Annotator 1': 'first',  # Keep the first annotator\n",
    "    'Annotator 2': 'first',  # Keep the first annotator\n",
    "    'Triplet_id': 'first'  # Keep the first triplet_id\n",
    "}).reset_index(drop=True)  # Avoid resetting the index with Sentences\n",
    "\n",
    "# Rename columns to reflect the aggregated data\n",
    "grouped_music.rename(columns={\n",
    "    'Sentences': 'Combined_Sentences',\n",
    "    'Triplet': 'Combined_Triplets'\n",
    "}, inplace=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Adding factoids for each sentence\n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "from itext2kg.documents_distiller import DocumentsDistiller\n",
    "from pydantic import BaseModel, Field\n",
    "from typing import List\n",
    "\n",
    "document_distiller = DocumentsDistiller(llm_model=openai_llm_model)\n",
    "\n",
    "class SimplePhrase(BaseModel):\n",
    "    phrase:str= Field(description=\"Propositions are defined as atomic expressions within text, each encapsulating a distinct factoid and presented in a concise, self-contained natural language format.\")\n",
    "\n",
    "class ListOfSimplePhrases(BaseModel):\n",
    "    phrases:List[SimplePhrase] = Field(description=\"All Propositions\")\n",
    "\n",
    "IE_query = '''\n",
    "        # DIRECTIVES : \n",
    "        - Act like an experienced paraphraser.\n",
    "        - Paraphrase the following context into a list of simple phrases.\n",
    "    '''\n",
    "        \n",
    "# Distill document content with query\n",
    "def factoid(paragraph:str):\n",
    "    print(\"distilling ..\")\n",
    "    distilled_doc = document_distiller.distill(\n",
    "    documents=[paragraph],\n",
    "    IE_query=IE_query,\n",
    "    output_data_structure=ListOfSimplePhrases\n",
    ")\n",
    "    return [fact[\"phrase\"] for fact in distilled_doc[\"phrases\"]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n"
     ]
    }
   ],
   "source": [
    "grouped_music[\"Factoids\"] = grouped_music[\"Combined_Sentences\"].apply(lambda x: factoid(x)) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 171,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n",
      "distilling ..\n"
     ]
    }
   ],
   "source": [
    "grouped_cs[\"Factoids\"] = grouped_cs[\"Combined_Sentences\"].apply(lambda x: factoid(x))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Triplets from factoids and from original sentences\n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "def extract_triplets_from_original_sentences(original_sentences:str):\n",
    "    kg = itext2kg.build_graph(sections=[original_sentences])\n",
    "    return [(rel.startEntity.name, rel.name, rel.endEntity.name) for rel in kg.relationships]\n",
    "\n",
    "def extract_triplets_from_factoids(factoids:str):\n",
    "    kg = itext2kg.build_graph(sections=[\" \".join(factoids)])\n",
    "    return [(rel.startEntity.name, rel.name, rel.endEntity.name) for rel in kg.relationships]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Methodist', 'label': 'Religious Denomination'}, {'name': 'Holiness', 'label': 'Religious Movement'}, {'name': 'Baptist', 'label': 'Religious Denomination'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'methodist', 'label': 'Religious_Denomination'}, 'endNode': {'name': 'holiness', 'label': 'Religious_Movement'}, 'name': 'is_a_part_of'}, {'startNode': {'name': 'baptist', 'label': 'Religious_Denomination'}, 'endNode': {'name': 'holiness', 'label': 'Religious_Movement'}, 'name': 'is_a_part_of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Progressive Bluegrass', 'label': 'Genre'}, {'name': 'Electric Instruments', 'label': 'Instrument'}, {'name': 'Rock & Roll', 'label': 'Genre'}, {'name': 'Cadillac Sky', 'label': 'Band'}, {'name': 'Bearfoot', 'label': 'Band'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'progressive bluegrass', 'label': 'Genre'}, 'endNode': {'name': 'electric instruments', 'label': 'Instrument'}, 'name': 'uses'}, {'startNode': {'name': 'progressive bluegrass', 'label': 'Genre'}, 'endNode': {'name': 'rock & roll', 'label': 'Genre'}, 'name': 'incorporates'}, {'startNode': {'name': 'cadillac sky', 'label': 'Band'}, 'endNode': {'name': 'progressive bluegrass', 'label': 'Genre'}, 'name': 'is an example of'}, {'startNode': {'name': 'bearfoot', 'label': 'Band'}, 'endNode': {'name': 'progressive bluegrass', 'label': 'Genre'}, 'name': 'is an example of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Old-time music', 'label': 'Music Genre'}, {'name': 'Melody', 'label': 'Musical Element'}, {'name': 'Instrument', 'label': 'Musical Component'}, {'name': 'Lead', 'label': 'Musical Role'}, {'name': 'Accompany', 'label': 'Musical Role'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'instrument', 'label': 'Musical_Component'}, 'endNode': {'name': 'melody', 'label': 'Musical_Element'}, 'name': 'plays'}, {'startNode': {'name': 'old time music', 'label': 'Music_Genre'}, 'endNode': {'name': 'instrument', 'label': 'Musical_Component'}, 'name': 'features'}, {'startNode': {'name': 'instrument', 'label': 'Musical_Component'}, 'endNode': {'name': 'lead', 'label': 'Musical_Role'}, 'name': 'may'}, {'startNode': {'name': 'instrument', 'label': 'Musical_Component'}, 'endNode': {'name': 'accompany', 'label': 'Musical_Role'}, 'name': 'may'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Traditional Bluegrass', 'label': 'Music Genre'}, {'name': 'Folk Songs', 'label': 'Music Type'}, {'name': 'Simple Traditional Chord Progressions', 'label': 'Musical Feature'}, {'name': 'Acoustic Instruments', 'label': 'Instrument Type'}, {'name': 'Bill Monroe', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'traditional bluegrass', 'label': 'Music_Genre'}, 'endNode': {'name': 'folk songs', 'label': 'Music_Type'}, 'name': 'features'}, {'startNode': {'name': 'traditional bluegrass', 'label': 'Music_Genre'}, 'endNode': {'name': 'simple traditional chord progressions', 'label': 'Musical_Feature'}, 'name': 'includes'}, {'startNode': {'name': 'traditional bluegrass', 'label': 'Music_Genre'}, 'endNode': {'name': 'acoustic instruments', 'label': 'Instrument_Type'}, 'name': 'uses'}, {'startNode': {'name': 'bill monroe', 'label': 'Person'}, 'endNode': {'name': 'traditional bluegrass', 'label': 'Music_Genre'}, 'name': 'is an example of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'A Brisk Young Sailor Courted Me', 'label': 'Ballad'}, {'name': 'I Wish My Baby Was Born', 'label': 'Song'}, {'name': 'England', 'label': 'Country'}, {'name': 'North American bluegrass', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'a brisk young sailor courted me', 'label': 'Ballad'}, 'endNode': {'name': 'i wish my baby was born', 'label': 'Song'}, 'name': 'is known as'}, {'startNode': {'name': 'a brisk young sailor courted me', 'label': 'Ballad'}, 'endNode': {'name': 'england', 'label': 'Country'}, 'name': 'originated in'}, {'startNode': {'name': 'i wish my baby was born', 'label': 'Song'}, 'endNode': {'name': 'north american bluegrass', 'label': 'Music_Genre'}, 'name': 'is part of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass gospel', 'label': 'Subgenre'}, {'name': 'Christian lyrics', 'label': 'Feature'}, {'name': 'Soulful harmony singing', 'label': 'Feature'}, {'name': 'Three-part harmonies', 'label': 'Technique'}, {'name': 'Four-part harmonies', 'label': 'Technique'}, {'name': 'Instrumental playing', 'label': 'Feature'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bluegrass gospel', 'label': 'Subgenre'}, 'endNode': {'name': 'christian lyrics', 'label': 'Feature'}, 'name': 'features'}, {'startNode': {'name': 'bluegrass gospel', 'label': 'Subgenre'}, 'endNode': {'name': 'soulful harmony singing', 'label': 'Feature'}, 'name': 'includes'}, {'startNode': {'name': 'soulful harmony singing', 'label': 'Feature'}, 'endNode': {'name': 'three part harmonies', 'label': 'Technique'}, 'name': 'involves'}, {'startNode': {'name': 'soulful harmony singing', 'label': 'Feature'}, 'endNode': {'name': 'four part harmonies', 'label': 'Technique'}, 'name': 'involves'}, {'startNode': {'name': 'bluegrass gospel', 'label': 'Subgenre'}, 'endNode': {'name': 'instrumental playing', 'label': 'Feature'}, 'name': 'sometimes includes'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'English ballads', 'label': 'Tradition'}, {'name': 'Scottish ballads', 'label': 'Tradition'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'english ballads', 'label': 'Tradition'}, 'endNode': {'name': 'scottish ballads', 'label': 'Tradition'}, 'name': 'include'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Music Tradition', 'name': 'Experimental Music'}, {'label': 'Time Period', 'name': 'Mid-20th Century'}, {'label': 'Region', 'name': 'North America'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'experimental music', 'label': 'Music_Tradition'}, 'endNode': {'name': 'north america', 'label': 'Region'}, 'name': 'became popular in'}, {'startNode': {'name': 'experimental music', 'label': 'Music_Tradition'}, 'endNode': {'name': 'mid 20th century', 'label': 'Time_Period'}, 'name': 'started in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Neo-traditional bluegrass', 'label': 'Genre'}, {'name': 'Bluegrass', 'label': 'Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'neo traditional bluegrass', 'label': 'Genre'}, 'endNode': {'name': 'bluegrass', 'label': 'Genre'}, 'name': 'is a development in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Experimental Action', 'label': 'Concept'}, {'name': 'Unforeseen Outcome', 'label': 'Concept'}, {'name': 'John Cage', 'label': 'Person'}, {'name': 'Unpredictable Actions', 'label': 'Concept'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'john cage', 'label': 'Person'}, 'endNode': {'name': 'experimental action', 'label': 'Concept'}, 'name': 'defines'}, {'startNode': {'name': 'experimental action', 'label': 'Concept'}, 'endNode': {'name': 'unforeseen outcome', 'label': 'Concept'}, 'name': 'results in'}, {'startNode': {'name': 'john cage', 'label': 'Person'}, 'endNode': {'name': 'unpredictable actions', 'label': 'Concept'}, 'name': 'interested in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Béla Bartók', 'label': 'Person'}, {'name': 'Traditional Balkanic Tunes', 'label': 'Music Genre'}, {'name': 'Audio Recordings', 'label': 'Technique'}, {'name': 'Ethnological Perspective', 'label': 'Methodology'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'béla bartók', 'label': 'Person'}, 'endNode': {'name': 'audio recordings', 'label': 'Technique'}, 'name': 'focused on'}, {'startNode': {'name': 'béla bartók', 'label': 'Person'}, 'endNode': {'name': 'traditional balkanic tunes', 'label': 'Music_Genre'}, 'name': 'recorded'}, {'startNode': {'name': 'béla bartók', 'label': 'Person'}, 'endNode': {'name': 'ethnological perspective', 'label': 'Methodology'}, 'name': 'analyzed from'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electronic Instruments', 'label': 'Instrument'}, {'name': 'Olivier Messiaen', 'label': 'Person'}, {'name': '1930s', 'label': 'Time Period'}, {'name': 'Live Performances', 'label': 'Event'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'olivier messiaen', 'label': 'Person'}, 'endNode': {'name': 'electronic instruments', 'label': 'Instrument'}, 'name': 'used'}, {'startNode': {'name': 'electronic instruments', 'label': 'Instrument'}, 'endNode': {'name': 'live performances', 'label': 'Event'}, 'name': 'used in'}, {'startNode': {'name': '1930s', 'label': 'Time_Period'}, 'endNode': {'name': 'electronic instruments', 'label': 'Instrument'}, 'name': 'began being used'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Romantic period', 'label': 'Period'}, {'name': 'musical modifications', 'label': 'Process'}, {'name': 'Berlioz', 'label': 'Person'}, {'name': 'Mahler', 'label': 'Person'}, {'name': '20th century', 'label': 'Period'}, {'name': 'instrumentation', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'berlioz', 'label': 'Person'}, 'endNode': {'name': 'musical modifications', 'label': 'Process'}, 'name': 'influenced'}, {'startNode': {'name': 'mahler', 'label': 'Person'}, 'endNode': {'name': 'musical modifications', 'label': 'Process'}, 'name': 'influenced'}, {'startNode': {'name': 'romantic period', 'label': 'Period'}, 'endNode': {'name': 'musical modifications', 'label': 'Process'}, 'name': 'saw changes in'}, {'startNode': {'name': '20th century', 'label': 'Period'}, 'endNode': {'name': 'instrumentation', 'label': 'Technique'}, 'name': 'allowed choice of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electric Instruments', 'label': 'Musical Device'}, {'name': 'Electronic Instruments', 'label': 'Musical Device'}, {'name': 'Digital Instruments', 'label': 'Musical Device'}, {'name': 'Musical Devices', 'label': 'Musical Device'}, {'name': 'Composers', 'label': 'Person'}, {'name': 'Musicians', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'composers', 'label': 'Person'}, 'endNode': {'name': 'electric instruments', 'label': 'Musical_Device'}, 'name': 'used'}, {'startNode': {'name': 'musicians', 'label': 'Person'}, 'endNode': {'name': 'electronic instruments', 'label': 'Musical_Device'}, 'name': 'used'}, {'startNode': {'name': 'composers', 'label': 'Person'}, 'endNode': {'name': 'digital instruments', 'label': 'Musical_Device'}, 'name': 'used'}, {'startNode': {'name': 'musicians', 'label': 'Person'}, 'endNode': {'name': 'musical devices', 'label': 'Musical_Device'}, 'name': 'used'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Neoclassicism', 'label': 'Art Movement'}, {'name': '1920s', 'label': 'Time Period'}, {'name': 'Igor Stravinsky', 'label': 'Person'}, {'name': 'Mavra', 'label': 'Opera Buffa'}, {'name': '1922', 'label': 'Year'}, {'name': 'Oedipus Rex', 'label': 'Opera-Oratorio'}, {'name': '1927', 'label': 'Year'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'neoclassicism', 'label': 'Art_Movement'}, 'endNode': {'name': '1920s', 'label': 'Time_Period'}, 'name': 'became popular in'}, {'startNode': {'name': 'mavra', 'label': 'Opera_Buffa'}, 'endNode': {'name': '1922', 'label': 'Year'}, 'name': 'was created in'}, {'startNode': {'name': 'oedipus rex', 'label': 'Opera_Oratorio'}, 'endNode': {'name': '1927', 'label': 'Year'}, 'name': 'was created in'}, {'startNode': {'name': 'igor stravinsky', 'label': 'Person'}, 'endNode': {'name': 'mavra', 'label': 'Opera_Buffa'}, 'name': 'created'}, {'startNode': {'name': 'igor stravinsky', 'label': 'Person'}, 'endNode': {'name': 'oedipus rex', 'label': 'Opera_Oratorio'}, 'name': 'created'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass music', 'label': 'Music Genre'}, {'name': 'Fans', 'label': 'Audience'}, {'name': 'Global audience', 'label': 'Audience'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'global audience', 'label': 'Audience'}, 'name': 'has'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'fans', 'label': 'Audience'}, 'name': 'has'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass music', 'label': 'Genre'}, {'name': 'American roots music', 'label': 'Genre'}, {'name': 'Country music', 'label': 'Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bluegrass music', 'label': 'Genre'}, 'endNode': {'name': 'american roots music', 'label': 'Genre'}, 'name': 'is a type of'}, {'startNode': {'name': 'bluegrass music', 'label': 'Genre'}, 'endNode': {'name': 'country music', 'label': 'Genre'}, 'name': 'is related to'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bill Monroe', 'label': 'Person'}, {'name': 'Bluegrass music', 'label': 'Genre'}, {'name': 'Scottish bagpipes', 'label': 'Instrument'}, {'name': 'Old-time fiddling', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bill monroe', 'label': 'Person'}, 'endNode': {'name': 'bluegrass music', 'label': 'Genre'}, 'name': 'pioneer of'}, {'startNode': {'name': 'bluegrass music', 'label': 'Genre'}, 'endNode': {'name': 'scottish bagpipes', 'label': 'Instrument'}, 'name': 'mix of'}, {'startNode': {'name': 'bluegrass music', 'label': 'Genre'}, 'endNode': {'name': 'old time fiddling', 'label': 'Technique'}, 'name': 'mix of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Muddy Waters', 'label': 'Person'}, {'name': 'Delta Blues', 'label': 'Music Genre'}, {'name': 'Mississippi Delta', 'label': 'Region'}, {'name': 'Chicago', 'label': 'City'}, {'name': 'Chicago Blues', 'label': 'Music Genre'}, {'name': 'Acoustic Instruments', 'label': 'Instrument Type'}, {'name': 'Electric Instruments', 'label': 'Instrument Type'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'muddy waters', 'label': 'Person'}, 'endNode': {'name': 'delta blues', 'label': 'Music_Genre'}, 'name': 'played'}, {'startNode': {'name': 'delta blues', 'label': 'Music_Genre'}, 'endNode': {'name': 'mississippi delta', 'label': 'Region'}, 'name': 'originated in'}, {'startNode': {'name': 'delta blues', 'label': 'Music_Genre'}, 'endNode': {'name': 'acoustic instruments', 'label': 'Instrument_Type'}, 'name': 'mostly played with'}, {'startNode': {'name': 'blues musicians', 'label': 'Person'}, 'endNode': {'name': 'mississippi delta', 'label': 'Region'}, 'name': 'moved from'}, {'startNode': {'name': 'blues musicians', 'label': 'Person'}, 'endNode': {'name': 'chicago', 'label': 'City'}, 'name': 'moved to'}, {'startNode': {'name': 'chicago blues', 'label': 'Music_Genre'}, 'endNode': {'name': 'chicago', 'label': 'City'}, 'name': 'formed in'}, {'startNode': {'name': 'chicago blues', 'label': 'Music_Genre'}, 'endNode': {'name': 'electric instruments', 'label': 'Instrument_Type'}, 'name': 'used more'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Person' name='blues musicians' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO] Wohoo! Entity was matched --- [blues musicians:Person] --merged--> [muddy waters:Person]\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Person' name='blues musicians' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO] Wohoo! Entity was matched --- [blues musicians:Person] --merged--> [muddy waters:Person]\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Breakdowns', 'label': 'Music Technique'}, {'name': 'Fast Tempos', 'label': 'Musical Characteristic'}, {'name': 'Unusual Instrumental Skill', 'label': 'Musical Skill'}, {'name': 'Complex Chord Changes', 'label': 'Musical Structure'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'breakdowns', 'label': 'Music_Technique'}, 'endNode': {'name': 'fast tempos', 'label': 'Musical_Characteristic'}, 'name': 'often have'}, {'startNode': {'name': 'breakdowns', 'label': 'Music_Technique'}, 'endNode': {'name': 'unusual instrumental skill', 'label': 'Musical_Skill'}, 'name': 'show'}, {'startNode': {'name': 'breakdowns', 'label': 'Music_Technique'}, 'endNode': {'name': 'complex chord changes', 'label': 'Musical_Structure'}, 'name': 'sometimes include'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Busoni', 'label': 'Person'}, {'name': 'Stravinsky', 'label': 'Person'}, {'name': 'Schoenberg', 'label': 'Person'}, {'name': 'Schreker', 'label': 'Person'}, {'name': 'Ives', 'label': 'Person'}, {'name': 'Modernism', 'label': 'Movement'}, {'name': 'Tonality', 'label': 'Concept'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'busoni', 'label': 'Person'}, 'endNode': {'name': 'modernism', 'label': 'Movement'}, 'name': 'recognized as'}, {'startNode': {'name': 'stravinsky', 'label': 'Person'}, 'endNode': {'name': 'modernism', 'label': 'Movement'}, 'name': 'recognized as'}, {'startNode': {'name': 'schoenberg', 'label': 'Person'}, 'endNode': {'name': 'modernism', 'label': 'Movement'}, 'name': 'recognized as'}, {'startNode': {'name': 'schreker', 'label': 'Person'}, 'endNode': {'name': 'modernism', 'label': 'Movement'}, 'name': 'recognized as'}, {'startNode': {'name': 'ives', 'label': 'Person'}, 'endNode': {'name': 'modernism', 'label': 'Movement'}, 'name': 'included as'}, {'startNode': {'name': 'ives', 'label': 'Person'}, 'endNode': {'name': 'tonality', 'label': 'Concept'}, 'name': 'challenged'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Jazz Fusion', 'label': 'Musical Genre'}, {'name': 'Jazz', 'label': 'Musical Genre'}, {'name': 'Rock', 'label': 'Musical Genre'}, {'name': 'Genre Fusion', 'label': 'Process'}, {'name': 'Late 1960s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'jazz', 'label': 'Musical_Genre'}, 'endNode': {'name': 'rock', 'label': 'Musical_Genre'}, 'name': 'combined_with'}, {'startNode': {'name': 'jazz', 'label': 'Musical_Genre'}, 'endNode': {'name': 'jazz fusion', 'label': 'Musical_Genre'}, 'name': 'evolved_into'}, {'startNode': {'name': 'rock', 'label': 'Musical_Genre'}, 'endNode': {'name': 'jazz fusion', 'label': 'Musical_Genre'}, 'name': 'evolved_into'}, {'startNode': {'name': 'genre fusion', 'label': 'Process'}, 'endNode': {'name': 'jazz fusion', 'label': 'Musical_Genre'}, 'name': 'resulted_in'}, {'startNode': {'name': 'late 1960s', 'label': 'Time_Period'}, 'endNode': {'name': 'jazz fusion', 'label': 'Musical_Genre'}, 'name': 'emerged_in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Musical Form', 'name': 'Bebop Jazz'}, {'label': 'Technique', 'name': 'Altered Chords'}, {'label': 'Technique', 'name': 'Extended Chords'}, {'label': 'Time Period', 'name': '1940s'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bebop jazz', 'label': 'Musical_Form'}, 'endNode': {'name': 'altered chords', 'label': 'Technique'}, 'name': 'uses'}, {'startNode': {'name': 'bebop jazz', 'label': 'Musical_Form'}, 'endNode': {'name': 'extended chords', 'label': 'Technique'}, 'name': 'features'}, {'startNode': {'name': 'bebop jazz', 'label': 'Musical_Form'}, 'endNode': {'name': '1940s', 'label': 'Time_Period'}, 'name': 'emerged in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Ralph Vaughan Williams', 'label': 'Person'}, {'name': 'Aaron Copland', 'label': 'Person'}, {'name': 'Carlos Chávez', 'label': 'Person'}, {'name': 'Heitor Villa-Lobos', 'label': 'Person'}, {'name': 'Folk themes', 'label': 'Technique'}, {'name': 'Compositions', 'label': 'Process'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'ralph vaughan williams', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'used in'}, {'startNode': {'name': 'aaron copland', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'incorporated in'}, {'startNode': {'name': 'carlos chávez', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'utilized in'}, {'startNode': {'name': 'heitor villa lobos', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'included in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=compositions, label=Process, properties=embeddings=array([ 0.01283477, -0.02478496, -0.01665724, ..., -0.0089686 ,\n",
      "        0.00614382,  0.0101562 ]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=aaron copland, label=Person, properties=embeddings=array([-6.37453049e-05, -1.28144383e-02, -1.03650261e-02, ...,\n",
      "        1.00888893e-03,  1.44823492e-03, -6.72440843e-03])), Entity(name=compositions, label=Process, properties=embeddings=array([ 0.01283477, -0.02478496, -0.01665724, ..., -0.0089686 ,\n",
      "        0.00614382,  0.0101562 ])), Entity(name=folk themes, label=Technique, properties=embeddings=array([-0.00710905, -0.01076599, -0.02328608, ..., -0.0137211 ,\n",
      "        0.01639313,  0.0049724 ])), Entity(name=heitor villa lobos, label=Person, properties=embeddings=array([-0.01002476,  0.02031854, -0.01033824, ...,  0.01109395,\n",
      "       -0.0023876 ,  0.00107583])), Entity(name=ralph vaughan williams, label=Person, properties=embeddings=array([ 9.39537771e-03, -2.11426895e-03, -7.27943210e-03, ...,\n",
      "       -5.58150590e-05, -8.03551637e-04,  1.93494447e-03])), Entity(name=carlos chávez, label=Person, properties=embeddings=array([-0.01218373,  0.02372791, -0.01214924, ...,  0.00711859,\n",
      "        0.00176056, -0.02643182]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'ralph vaughan williams', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'incorporated'}, {'startNode': {'name': 'aaron copland', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'incorporated'}, {'startNode': {'name': 'carlos chávez', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'utilized'}, {'startNode': {'name': 'heitor villa lobos', 'label': 'Person'}, 'endNode': {'name': 'folk themes', 'label': 'Technique'}, 'name': 'included'}, {'startNode': {'name': 'ralph vaughan williams', 'label': 'Person'}, 'endNode': {'name': 'compositions', 'label': 'Process'}, 'name': 'created'}, {'startNode': {'name': 'aaron copland', 'label': 'Person'}, 'endNode': {'name': 'compositions', 'label': 'Process'}, 'name': 'created'}, {'startNode': {'name': 'carlos chávez', 'label': 'Person'}, 'endNode': {'name': 'compositions', 'label': 'Process'}, 'name': 'created'}, {'startNode': {'name': 'heitor villa lobos', 'label': 'Person'}, 'endNode': {'name': 'compositions', 'label': 'Process'}, 'name': 'created'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] Wohoo! Relation was matched --- [incorporated] --merged --> [incorporated_in] \n",
      "[INFO] Wohoo! Relation was matched --- [incorporated] --merged --> [incorporated_in] \n",
      "[INFO] Wohoo! Relation was matched --- [utilized] --merged --> [utilized_in] \n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Ravel', 'label': 'Person'}, {'name': 'Milhaud', 'label': 'Person'}, {'name': 'Gershwin', 'label': 'Person'}, {'name': 'Classical Music', 'label': 'Music Genre'}, {'name': 'Jazz', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'ravel', 'label': 'Person'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'combined with'}, {'startNode': {'name': 'milhaud', 'label': 'Person'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'combined with'}, {'startNode': {'name': 'gershwin', 'label': 'Person'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'combined with'}, {'startNode': {'name': 'ravel', 'label': 'Person'}, 'endNode': {'name': 'classical music', 'label': 'Music_Genre'}, 'name': 'combined with'}, {'startNode': {'name': 'milhaud', 'label': 'Person'}, 'endNode': {'name': 'classical music', 'label': 'Music_Genre'}, 'name': 'combined with'}, {'startNode': {'name': 'gershwin', 'label': 'Person'}, 'endNode': {'name': 'classical music', 'label': 'Music_Genre'}, 'name': 'combined with'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Contemporary classical music', 'label': 'Music Genre'}, {'name': 'Modernist music', 'label': 'Music Style'}, {'name': 'Postmodern music', 'label': 'Music Style'}, {'name': 'Neoromantic music', 'label': 'Music Style'}, {'name': 'Pluralist music', 'label': 'Music Style'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'modernist music', 'label': 'Music_Style'}, 'endNode': {'name': 'contemporary classical music', 'label': 'Music_Genre'}, 'name': 'included in'}, {'startNode': {'name': 'postmodern music', 'label': 'Music_Style'}, 'endNode': {'name': 'contemporary classical music', 'label': 'Music_Genre'}, 'name': 'included in'}, {'startNode': {'name': 'neoromantic music', 'label': 'Music_Style'}, 'endNode': {'name': 'contemporary classical music', 'label': 'Music_Genre'}, 'name': 'included in'}, {'startNode': {'name': 'pluralist music', 'label': 'Music_Style'}, 'endNode': {'name': 'contemporary classical music', 'label': 'Music_Genre'}, 'name': 'included in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Country music', 'label': 'Musical Form'}, {'name': 'Country and Western music', 'label': 'Musical Form'}, {'name': 'Southern United States', 'label': 'Region'}, {'name': 'Traditional folk music', 'label': 'Music Genre'}, {'name': 'Spirituals', 'label': 'Music Genre'}, {'name': 'Blues', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'country music', 'label': 'Musical_Form'}, 'endNode': {'name': 'country and western music', 'label': 'Musical_Form'}, 'name': 'was once called'}, {'startNode': {'name': 'country music', 'label': 'Musical_Form'}, 'endNode': {'name': 'southern united states', 'label': 'Region'}, 'name': 'developed in'}, {'startNode': {'name': 'country music', 'label': 'Musical_Form'}, 'endNode': {'name': 'traditional folk music', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'country music', 'label': 'Musical_Form'}, 'endNode': {'name': 'spirituals', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'country music', 'label': 'Musical_Form'}, 'endNode': {'name': 'blues', 'label': 'Music_Genre'}, 'name': 'has roots in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Disco', 'label': 'Music Style'}, {'name': 'Funk', 'label': 'Music Genre'}, {'name': 'Salsa', 'label': 'Music Genre'}, {'name': 'Soul', 'label': 'Music Genre'}, {'name': '1970s', 'label': 'Time Period'}, {'name': 'Gay Audience', 'label': 'Audience'}, {'name': 'African-American Audience', 'label': 'Audience'}, {'name': 'U.S. Cities', 'label': 'Location'}, {'name': 'Discothèque', 'label': 'French Word'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': '1970s', 'label': 'Time_Period'}, 'name': 'began_in'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'funk', 'label': 'Music_Genre'}, 'name': 'originates_from'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'salsa', 'label': 'Music_Genre'}, 'name': 'originates_from'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'soul', 'label': 'Music_Genre'}, 'name': 'originates_from'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'gay audience', 'label': 'Audience'}, 'name': 'popular_with'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'african american audience', 'label': 'Audience'}, 'name': 'popular_with'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'u.s. cities', 'label': 'Location'}, 'name': 'popular_in'}, {'startNode': {'name': 'disco', 'label': 'Music_Style'}, 'endNode': {'name': 'discothèque', 'label': 'French_Word'}, 'name': 'name_derived_from'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Music Variety', 'label': 'Concept'}, {'name': '20th Century', 'label': 'Time Period'}, {'name': 'Music Diversity', 'label': 'Concept'}, {'name': 'Music Range Expansion', 'label': 'Process'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': '20th century', 'label': 'Time_Period'}, 'endNode': {'name': 'music variety', 'label': 'Concept'}, 'name': 'saw growth in'}, {'startNode': {'name': '20th century', 'label': 'Time_Period'}, 'endNode': {'name': 'music diversity', 'label': 'Concept'}, 'name': 'saw increase in'}, {'startNode': {'name': '20th century', 'label': 'Time_Period'}, 'endNode': {'name': 'music range expansion', 'label': 'Process'}, 'name': 'experienced'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Edgard Varèse', 'label': 'Person'}, {'name': 'Karlheinz Stockhausen', 'label': 'Person'}, {'name': 'Milton Babbitt', 'label': 'Person'}, {'name': 'Pierre Boulez', 'label': 'Person'}, {'name': 'Luigi Nono', 'label': 'Person'}, {'name': 'Herbert Brün', 'label': 'Person'}, {'name': 'Iannis Xenakis', 'label': 'Person'}, {'name': 'Electronic Music', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'Edgard Varèse', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Karlheinz Stockhausen', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Milton Babbitt', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Pierre Boulez', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Luigi Nono', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Herbert Brün', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}, {'startNode': {'name': 'Iannis Xenakis', 'label': 'Person'}, 'endNode': {'name': 'electronic music', 'label': 'Technique'}, 'name': 'embraced'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Jet Flights', 'label': 'Process'}, {'name': 'Faster Travel', 'label': 'Process'}, {'name': 'Musicians', 'label': 'Person'}, {'name': 'Fans', 'label': 'Person'}, {'name': 'Musical Styles', 'label': 'Concept'}, {'name': 'Spread of Musical Styles', 'label': 'Process'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'jet flights', 'label': 'Process'}, 'endNode': {'name': 'faster travel', 'label': 'Process'}, 'name': 'enable'}, {'startNode': {'name': 'faster travel', 'label': 'Process'}, 'endNode': {'name': 'musicians', 'label': 'Person'}, 'name': 'benefit'}, {'startNode': {'name': 'faster travel', 'label': 'Process'}, 'endNode': {'name': 'fans', 'label': 'Person'}, 'name': 'benefit'}, {'startNode': {'name': 'faster travel', 'label': 'Process'}, 'endNode': {'name': 'spread of musical styles', 'label': 'Process'}, 'name': 'facilitate'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=musical styles, label=Concept, properties=embeddings=array([-0.00352134,  0.0013954 , -0.02964254, ...,  0.00117912,\n",
      "       -0.00290935,  0.00633138]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'musical styles', 'label': 'Concept'}, 'endNode': {'name': 'wider travel', 'label': 'Concept'}, 'name': 'increased with'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Concept' name='wider travel' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=musicians, label=Person, properties=embeddings=array([ 1.18164625e-02,  3.85720121e-03, -2.09113088e-02, ...,\n",
      "        1.35521015e-03,  8.98065045e-05, -1.92479722e-02])), Entity(name=faster travel, label=Process, properties=embeddings=array([-0.00943439, -0.00337889, -0.00214155, ...,  0.00379248,\n",
      "       -0.00039305, -0.00749851])), Entity(name=spread of musical styles, label=Process, properties=embeddings=array([ 0.00242687, -0.00407603, -0.01588323, ...,  0.00729283,\n",
      "        0.00326475,  0.00643201])), Entity(name=fans, label=Person, properties=embeddings=array([-0.00495601,  0.0162881 , -0.01873751, ...,  0.00932677,\n",
      "       -0.00343437, -0.01844313])), Entity(name=jet flights, label=Process, properties=embeddings=array([-0.0104434 , -0.03095246, -0.0059186 , ...,  0.01412479,\n",
      "       -0.00177879, -0.01323799]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'musicians', 'label': 'Person'}, 'endNode': {'name': 'faster travel', 'label': 'Process'}, 'name': 'enabled by'}, {'startNode': {'name': 'faster travel', 'label': 'Process'}, 'endNode': {'name': 'jet flights', 'label': 'Process'}, 'name': 'facilitated by'}, {'startNode': {'name': 'musicians', 'label': 'Person'}, 'endNode': {'name': 'spread of musical styles', 'label': 'Process'}, 'name': 'contributes to'}, {'startNode': {'name': 'fans', 'label': 'Person'}, 'endNode': {'name': 'faster travel', 'label': 'Process'}, 'name': 'benefits from'}, {'startNode': {'name': 'spread of musical styles', 'label': 'Process'}, 'endNode': {'name': 'faster travel', 'label': 'Process'}, 'name': 'enhanced by'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=musical styles, label=Concept, properties=embeddings=array([-0.00352134,  0.0013954 , -0.02964254, ...,  0.00117912,\n",
      "       -0.00290935,  0.00633138]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'musical styles', 'label': 'Concept'}, 'endNode': {'name': 'musical styles', 'label': 'Concept'}, 'name': 'spread with wider travel'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Folk Music', 'label': 'Music Genre'}, {'name': 'Community', 'label': 'Group'}, {'name': 'Oral Tradition', 'label': 'Transmission Method'}, {'name': 'Amateurs', 'label': 'Performer Type'}, {'name': 'Professionals', 'label': 'Performer Type'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'community', 'label': 'Group'}, 'name': 'shared by'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'oral tradition', 'label': 'Transmission_Method'}, 'name': 'passed down through'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'professionals', 'label': 'Performer_Type'}, 'name': 'not performed by'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'amateurs', 'label': 'Performer_Type'}, 'name': 'possibly excluded from performing'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Folk Music', 'label': 'Music Genre'}, {'name': 'Johann Gottfried Herder', 'label': 'Person'}, {'name': 'Merrie England movement', 'label': 'Cultural Movement'}, {'name': 'Irish Gaelic Revival', 'label': 'Cultural Revival'}, {'name': 'Scottish Gaelic Revival', 'label': 'Cultural Revival'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'johann gottfried herder', 'label': 'Person'}, 'endNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'name': 'defined'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'merrie england movement', 'label': 'Cultural_Movement'}, 'name': 'associated_with'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'irish gaelic revival', 'label': 'Cultural_Revival'}, 'name': 'reflected_in'}, {'startNode': {'name': 'folk music', 'label': 'Music_Genre'}, 'endNode': {'name': 'scottish gaelic revival', 'label': 'Cultural_Revival'}, 'name': 'reflected_in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Instrumental Music', 'label': 'Category'}, {'name': 'Singing', 'label': 'Technique'}, {'name': 'Mechanical Technologies', 'label': 'Technique'}, {'name': 'Bow', 'label': 'Tool'}, {'name': 'String', 'label': 'Component'}, {'name': 'Hollow Instrument', 'label': 'Instrument'}, {'name': 'Plucking', 'label': 'Technique'}, {'name': 'Gut', 'label': 'Material'}, {'name': 'Metal', 'label': 'Material'}, {'name': 'String Instruments', 'label': 'Category'}, {'name': 'Woodwinds', 'label': 'Category'}, {'name': 'Brass', 'label': 'Category'}, {'name': 'Percussion Instruments', 'label': 'Category'}, {'name': 'Vibrating Air', 'label': 'Process'}, {'name': 'Rhythmic Sounds', 'label': 'Output'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'instrumental music', 'label': 'Category'}, 'endNode': {'name': 'singing', 'label': 'Technique'}, 'name': 'created by'}, {'startNode': {'name': 'instrumental music', 'label': 'Category'}, 'endNode': {'name': 'mechanical technologies', 'label': 'Technique'}, 'name': 'created by'}, {'startNode': {'name': 'bow', 'label': 'Tool'}, 'endNode': {'name': 'string', 'label': 'Component'}, 'name': 'drawn across'}, {'startNode': {'name': 'string', 'label': 'Component'}, 'endNode': {'name': 'hollow instrument', 'label': 'Instrument'}, 'name': 'part of'}, {'startNode': {'name': 'string instruments', 'label': 'Category'}, 'endNode': {'name': 'string', 'label': 'Component'}, 'name': 'use'}, {'startNode': {'name': 'string', 'label': 'Component'}, 'endNode': {'name': 'gut', 'label': 'Material'}, 'name': 'made of'}, {'startNode': {'name': 'string', 'label': 'Component'}, 'endNode': {'name': 'metal', 'label': 'Material'}, 'name': 'made of'}, {'startNode': {'name': 'woodwinds', 'label': 'Category'}, 'endNode': {'name': 'vibrating air', 'label': 'Process'}, 'name': 'constrict'}, {'startNode': {'name': 'brass', 'label': 'Category'}, 'endNode': {'name': 'vibrating air', 'label': 'Process'}, 'name': 'constrict'}, {'startNode': {'name': 'percussion instruments', 'label': 'Category'}, 'endNode': {'name': 'rhythmic sounds', 'label': 'Output'}, 'name': 'produce'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=plucking, label=Technique, properties=embeddings=array([ 0.01235601, -0.00823593, -0.00790459, ...,  0.00290322,\n",
      "       -0.01076746, -0.00210012]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=mechanical technologies, label=Technique, properties=embeddings=array([ 0.01055826, -0.00196097, -0.02583371, ..., -0.00414044,\n",
      "       -0.02616756,  0.00634253])), Entity(name=metal, label=Material, properties=embeddings=array([-0.01966738,  0.00593809, -0.01078487, ..., -0.00552464,\n",
      "       -0.01432614,  0.01393794])), Entity(name=instrumental music, label=Category, properties=embeddings=array([-0.00285738, -0.00119049, -0.02543791, ..., -0.00679472,\n",
      "       -0.01459995,  0.00517548])), Entity(name=singing, label=Technique, properties=embeddings=array([ 0.0214773 ,  0.00295716, -0.01340289, ...,  0.00438497,\n",
      "       -0.00797745, -0.00156048])), Entity(name=plucking, label=Technique, properties=embeddings=array([ 0.01235601, -0.00823593, -0.00790459, ...,  0.00290322,\n",
      "       -0.01076746, -0.00210012])), Entity(name=woodwinds, label=Category, properties=embeddings=array([-0.0030189 ,  0.01982053, -0.02208725, ..., -0.00681173,\n",
      "       -0.00684358, -0.00083224])), Entity(name=percussion instruments, label=Category, properties=embeddings=array([ 0.00513615,  0.01263915, -0.02420482, ..., -0.00903751,\n",
      "       -0.01027847, -0.0030776 ])), Entity(name=vibrating air, label=Process, properties=embeddings=array([-0.00121139, -0.02353309,  0.00318075, ...,  0.00324125,\n",
      "       -0.0017586 ,  0.00242835])), Entity(name=string, label=Component, properties=embeddings=array([ 0.01180683, -0.00297445, -0.00987175, ..., -0.00526935,\n",
      "       -0.00068214, -0.01062862])), Entity(name=string instruments, label=Category, properties=embeddings=array([ 0.00879097,  0.01220104, -0.020199  , ..., -0.01377254,\n",
      "       -0.00472705, -0.00787524])), Entity(name=gut, label=Material, properties=embeddings=array([ 0.00675382,  0.0254877 ,  0.0065928 , ..., -0.01840578,\n",
      "       -0.02528628,  0.00579478])), Entity(name=bow, label=Tool, properties=embeddings=array([-0.01661655, -0.02207344, -0.01738921, ...,  0.00094416,\n",
      "       -0.01843312, -0.00019846])), Entity(name=hollow instrument, label=Instrument, properties=embeddings=array([-0.00413142, -0.02809683, -0.01124121, ..., -0.0065282 ,\n",
      "       -0.02452166, -0.00936391])), Entity(name=brass, label=Category, properties=embeddings=array([ 0.00797136,  0.0122312 , -0.01852672, ..., -0.01851411,\n",
      "       -0.00690968,  0.01284858])), Entity(name=rhythmic sounds, label=Output, properties=embeddings=array([ 0.00755179,  0.00176064, -0.00906091, ...,  0.00325983,\n",
      "        0.00391741, -0.01143663]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'mechanical technologies', 'label': 'Technique'}, 'endNode': {'name': 'instrumental music', 'label': 'Category'}, 'name': 'used in'}, {'startNode': {'name': 'metal', 'label': 'Material'}, 'endNode': {'name': 'string', 'label': 'Component'}, 'name': 'material of'}, {'startNode': {'name': 'singing', 'label': 'Technique'}, 'endNode': {'name': 'instrumental music', 'label': 'Category'}, 'name': 'alternative to'}, {'startNode': {'name': 'plucking', 'label': 'Technique'}, 'endNode': {'name': 'string instruments', 'label': 'Category'}, 'name': 'technique for'}, {'startNode': {'name': 'woodwinds', 'label': 'Category'}, 'endNode': {'name': 'vibrating air', 'label': 'Process'}, 'name': 'produces'}, {'startNode': {'name': 'percussion instruments', 'label': 'Category'}, 'endNode': {'name': 'rhythmic sounds', 'label': 'Output'}, 'name': 'produces'}, {'startNode': {'name': 'string', 'label': 'Component'}, 'endNode': {'name': 'string instruments', 'label': 'Category'}, 'name': 'component of'}, {'startNode': {'name': 'gut', 'label': 'Material'}, 'endNode': {'name': 'string', 'label': 'Component'}, 'name': 'material of'}, {'startNode': {'name': 'bow', 'label': 'Tool'}, 'endNode': {'name': 'string instruments', 'label': 'Category'}, 'name': 'used with'}, {'startNode': {'name': 'hollow instrument', 'label': 'Instrument'}, 'endNode': {'name': 'string instruments', 'label': 'Category'}, 'name': 'type of'}, {'startNode': {'name': 'brass', 'label': 'Category'}, 'endNode': {'name': 'vibrating air', 'label': 'Process'}, 'name': 'produces'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] Wohoo! Relation was matched --- [material_of] --merged --> [made_of] \n",
      "[INFO] Wohoo! Relation was matched --- [material_of] --merged --> [made_of] \n",
      "[INFO] Wohoo! Relation was matched --- [produces] --merged --> [produce] \n",
      "[INFO] Wohoo! Relation was matched --- [produces] --merged --> [produce] \n",
      "[INFO] Wohoo! Relation was matched --- [produces] --merged --> [produce] \n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Chromatic Language', 'label': 'Technique'}, {'name': 'Tonality', 'label': 'Technique'}, {'name': 'Atonal Music', 'label': 'Technique'}, {'name': 'Arnold Schoenberg', 'label': 'Person'}, {'name': 'Erwartung', 'label': 'Opera'}, {'name': 'Die glückliche Hand', 'label': 'Opera'}, {'name': 'Alban Berg', 'label': 'Person'}, {'name': 'Wozzeck', 'label': 'Opera'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'chromatic language', 'label': 'Technique'}, 'endNode': {'name': 'tonality', 'label': 'Technique'}, 'name': 'broke away from'}, {'startNode': {'name': 'atonal music', 'label': 'Technique'}, 'endNode': {'name': 'arnold schoenberg', 'label': 'Person'}, 'name': 'emerged in early operas of'}, {'startNode': {'name': 'erwartung', 'label': 'Opera'}, 'endNode': {'name': 'arnold schoenberg', 'label': 'Person'}, 'name': 'composed by'}, {'startNode': {'name': 'die glückliche hand', 'label': 'Opera'}, 'endNode': {'name': 'arnold schoenberg', 'label': 'Person'}, 'name': 'composed by'}, {'startNode': {'name': 'alban berg', 'label': 'Person'}, 'endNode': {'name': 'arnold schoenberg', 'label': 'Person'}, 'name': 'student of'}, {'startNode': {'name': 'wozzeck', 'label': 'Opera'}, 'endNode': {'name': 'alban berg', 'label': 'Person'}, 'name': 'composed by'}, {'startNode': {'name': 'alban berg', 'label': 'Person'}, 'endNode': {'name': 'atonal music', 'label': 'Technique'}, 'name': 'composed'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Hip hop music', 'label': 'Genre'}, {'name': 'United States', 'label': 'Location'}, {'name': '1970s', 'label': 'Time Period'}, {'name': 'Rapping', 'label': 'Component'}, {'name': 'MCing', 'label': 'Component'}, {'name': 'DJing', 'label': 'Component'}, {'name': 'Audio mixing', 'label': 'Technique'}, {'name': 'Scratching', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'hip hop music', 'label': 'Genre'}, 'endNode': {'name': 'united states', 'label': 'Location'}, 'name': 'originated_in'}, {'startNode': {'name': 'hip hop music', 'label': 'Genre'}, 'endNode': {'name': '1970s', 'label': 'Time_Period'}, 'name': 'originated_in'}, {'startNode': {'name': 'hip hop music', 'label': 'Genre'}, 'endNode': {'name': 'mcing', 'label': 'Component'}, 'name': 'consists_of'}, {'startNode': {'name': 'hip hop music', 'label': 'Genre'}, 'endNode': {'name': 'djing', 'label': 'Component'}, 'name': 'consists_of'}, {'startNode': {'name': 'mcing', 'label': 'Component'}, 'endNode': {'name': 'rapping', 'label': 'Component'}, 'name': 'also_known_as'}, {'startNode': {'name': 'djing', 'label': 'Component'}, 'endNode': {'name': 'audio mixing', 'label': 'Technique'}, 'name': 'involves'}, {'startNode': {'name': 'djing', 'label': 'Component'}, 'endNode': {'name': 'scratching', 'label': 'Technique'}, 'name': 'involves'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Modernism in music', 'label': 'Movement'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'modernism in music', 'label': 'Movement'}, 'endNode': {'name': 'modernism in music', 'label': 'Movement'}, 'name': 'gained visibility'}, {'startNode': {'name': 'modernism in music', 'label': 'Movement'}, 'endNode': {'name': 'modernism in music', 'label': 'Movement'}, 'name': 'became significant'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Musical Forms After 1945', 'label': 'Concept'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=musical forms after 1945, label=Concept, properties=embeddings=array([-0.00305577, -0.01192636, -0.03338635, ...,  0.00058234,\n",
      "        0.00689136,  0.01060086]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=musical forms after 1945, label=Concept, properties=embeddings=array([-0.00305577, -0.01192636, -0.03338635, ...,  0.00058234,\n",
      "        0.00689136,  0.01060086]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=musical forms after 1945, label=Concept, properties=embeddings=array([-0.00305577, -0.01192636, -0.03338635, ...,  0.00058234,\n",
      "        0.00689136,  0.01060086]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': '19th Century Orchestras', 'label': 'Process'}, {'name': 'Standard Set of Instruments', 'label': 'Technique'}, {'name': 'Beethoven', 'label': 'Person'}, {'name': 'Felix Mendelssohn', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': '19th century orchestras', 'label': 'Process'}, 'endNode': {'name': 'standard set of instruments', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': '19th century orchestras', 'label': 'Process'}, 'endNode': {'name': 'beethoven', 'label': 'Person'}, 'name': 'existed during'}, {'startNode': {'name': '19th century orchestras', 'label': 'Process'}, 'endNode': {'name': 'felix mendelssohn', 'label': 'Person'}, 'name': 'existed during'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Aaron Copland', 'label': 'Person'}, {'name': 'American folk music', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'aaron copland', 'label': 'Person'}, 'endNode': {'name': 'american folk music', 'label': 'Music_Genre'}, 'name': 'incorporates elements of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass', 'label': 'Music Genre'}, {'name': 'Instruments', 'label': 'Musical Elements'}, {'name': 'Melody', 'label': 'Musical Elements'}, {'name': 'Improvisation', 'label': 'Technique'}, {'name': 'Accompaniment', 'label': 'Musical Elements'}, {'name': 'Jazz', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'instruments', 'label': 'Musical_Elements'}, 'endNode': {'name': 'melody', 'label': 'Musical_Elements'}, 'name': 'play'}, {'startNode': {'name': 'instruments', 'label': 'Musical_Elements'}, 'endNode': {'name': 'improvisation', 'label': 'Technique'}, 'name': 'improvise around'}, {'startNode': {'name': 'instruments', 'label': 'Musical_Elements'}, 'endNode': {'name': 'accompaniment', 'label': 'Musical_Elements'}, 'name': 'provide'}, {'startNode': {'name': 'bluegrass', 'label': 'Music_Genre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'similar to'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electronic Soundtracks', 'label': 'Technique'}, {'name': 'Film Industry', 'label': 'Industry'}, {'name': '1950s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'electronic soundtracks', 'label': 'Technique'}, 'endNode': {'name': 'film industry', 'label': 'Industry'}, 'name': 'used by'}, {'startNode': {'name': '1950s', 'label': 'Time_Period'}, 'endNode': {'name': 'electronic soundtracks', 'label': 'Technique'}, 'name': 'introduced in'}, {'startNode': {'name': '1950s', 'label': 'Time_Period'}, 'endNode': {'name': 'film industry', 'label': 'Industry'}, 'name': 'time period of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Turntable', 'label': 'Musical Instrument'}, {'name': 'Rhythmic Effects', 'label': 'Technique'}, {'name': 'Vinyl Records', 'label': 'Medium'}, {'name': 'Scratching', 'label': 'Technique'}, {'name': 'African-American Musicians', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'african american musicians', 'label': 'Person'}, 'endNode': {'name': 'turntable', 'label': 'Musical_Instrument'}, 'name': 'innovated with'}, {'startNode': {'name': 'african american musicians', 'label': 'Person'}, 'endNode': {'name': 'vinyl records', 'label': 'Medium'}, 'name': 'manipulated'}, {'startNode': {'name': 'african american musicians', 'label': 'Person'}, 'endNode': {'name': 'rhythmic effects', 'label': 'Technique'}, 'name': 'created'}, {'startNode': {'name': 'african american musicians', 'label': 'Person'}, 'endNode': {'name': 'scratching', 'label': 'Technique'}, 'name': 'produced'}, {'startNode': {'name': 'turntable', 'label': 'Musical_Instrument'}, 'endNode': {'name': 'scratching', 'label': 'Technique'}, 'name': 'used for'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electronic Dance Music', 'label': 'Music Genre'}, {'name': 'House Music', 'label': 'Music Genre'}, {'name': 'Synthesizers', 'label': 'Musical Instrument'}, {'name': 'Drum Machines', 'label': 'Musical Instrument'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'endNode': {'name': 'electronic dance music', 'label': 'Music_Genre'}, 'name': 'used in'}, {'startNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'endNode': {'name': 'house music', 'label': 'Music_Genre'}, 'name': 'used in'}, {'startNode': {'name': 'drum machines', 'label': 'Musical_Instrument'}, 'endNode': {'name': 'electronic dance music', 'label': 'Music_Genre'}, 'name': 'played a significant role in'}, {'startNode': {'name': 'drum machines', 'label': 'Musical_Instrument'}, 'endNode': {'name': 'house music', 'label': 'Music_Genre'}, 'name': 'played a significant role in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Rachmaninoff', 'label': 'Person'}, {'name': 'Richard Strauss', 'label': 'Person'}, {'name': 'Giacomo Puccini', 'label': 'Person'}, {'name': 'Edward Elgar', 'label': 'Person'}, {'name': '19th-century musical forms', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'rachmaninoff', 'label': 'Person'}, 'endNode': {'name': '19th century musical forms', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'giacomo puccini', 'label': 'Person'}, 'endNode': {'name': '19th century musical forms', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'richard strauss', 'label': 'Person'}, 'endNode': {'name': '19th century musical forms', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'edward elgar', 'label': 'Person'}, 'endNode': {'name': '19th century musical forms', 'label': 'Technique'}, 'name': 'used'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Julián Carrillo', 'label': 'Person'}, {'name': 'Mildred Couper', 'label': 'Person'}, {'name': 'Alois Hába', 'label': 'Person'}, {'name': 'Charles Ives', 'label': 'Person'}, {'name': 'Erwin Schulhoff', 'label': 'Person'}, {'name': 'Ivan Wyschnegradsky', 'label': 'Person'}, {'name': 'Quarter tones', 'label': 'Technique'}, {'name': 'Fine divisions of the octave', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'julián carrillo', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'mildred couper', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'focused on'}, {'startNode': {'name': 'alois hába', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'experimented with'}, {'startNode': {'name': 'charles ives', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'erwin schulhoff', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'worked with'}, {'startNode': {'name': 'ivan wyschnegradsky', 'label': 'Person'}, 'endNode': {'name': 'quarter tones', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'julián carrillo', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'mildred couper', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'alois hába', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'charles ives', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'erwin schulhoff', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'ivan wyschnegradsky', 'label': 'Person'}, 'endNode': {'name': 'fine divisions of the octave', 'label': 'Technique'}, 'name': 'explored'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electronic Devices', 'label': 'Category'}, {'name': 'Sound Production', 'label': 'Process'}, {'name': 'Early 1900s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'electronic devices', 'label': 'Category'}, 'endNode': {'name': 'sound production', 'label': 'Process'}, 'name': 'enable'}, {'startNode': {'name': 'electronic devices', 'label': 'Category'}, 'endNode': {'name': 'early 1900s', 'label': 'Time_Period'}, 'name': 'created in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Wagnerian chromatic harmony', 'label': 'Technique'}, {'name': 'Richard Strauss', 'label': 'Person'}, {'name': 'Salome', 'label': 'Opera'}, {'name': 'Die Frau ohne Schatten', 'label': 'Opera'}, {'name': 'Claude Debussy', 'label': 'Person'}, {'name': 'Pelléas et Mélisande', 'label': 'Opera'}, {'name': 'Giacomo Puccini', 'label': 'Person'}, {'name': 'Madama Butterfly', 'label': 'Opera'}, {'name': 'Il trittico', 'label': 'Opera'}, {'name': 'Ferruccio Busoni', 'label': 'Person'}, {'name': 'Doktor Faust', 'label': 'Opera'}, {'name': 'Philipp Jarnach', 'label': 'Person'}, {'name': 'Béla Bartók', 'label': 'Person'}, {'name': \"Bluebeard's Castle\", 'label': 'Opera'}, {'name': 'Hans Pfitzner', 'label': 'Person'}, {'name': 'Palestrina', 'label': 'Opera'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Salome', 'label': 'Opera'}, 'name': 'extended chromatic harmony in'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Die Frau ohne Schatten', 'label': 'Opera'}, 'name': 'extended chromatic harmony in'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Pelléas et Mélisande', 'label': 'Opera'}, 'name': 'used chromatic harmony in'}, {'startNode': {'name': 'Giacomo Puccini', 'label': 'Person'}, 'endNode': {'name': 'Madama Butterfly', 'label': 'Opera'}, 'name': 'incorporated chromatic harmony in'}, {'startNode': {'name': 'Giacomo Puccini', 'label': 'Person'}, 'endNode': {'name': 'Il trittico', 'label': 'Opera'}, 'name': 'incorporated chromatic harmony in'}, {'startNode': {'name': 'Ferruccio Busoni', 'label': 'Person'}, 'endNode': {'name': 'Doktor Faust', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'Philipp Jarnach', 'label': 'Person'}, 'endNode': {'name': 'Doktor Faust', 'label': 'Opera'}, 'name': 'completed posthumously'}, {'startNode': {'name': 'Béla Bartók', 'label': 'Person'}, 'endNode': {'name': \"Bluebeard's Castle\", 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'Hans Pfitzner', 'label': 'Person'}, 'endNode': {'name': 'Palestrina', 'label': 'Opera'}, 'name': 'used chromatic harmony in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=wagnerian chromatic harmony, label=Technique, properties=embeddings=array([ 0.01711708, -0.03033969, -0.01917052, ...,  0.00233553,\n",
      "        0.0081035 , -0.00348336]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=philipp jarnach, label=Person, properties=embeddings=array([ 0.01091556,  0.00540185, -0.0176642 , ..., -0.00281375,\n",
      "       -0.01746701, -0.01427186])), Entity(name=béla bartók, label=Person, properties=embeddings=array([ 0.01332556, -0.01121248, -0.00502565, ..., -0.00234709,\n",
      "        0.00467204, -0.00191773])), Entity(name=ferruccio busoni, label=Person, properties=embeddings=array([ 0.01604817, -0.01064084, -0.01729794, ...,  0.00274778,\n",
      "       -0.00018788, -0.00734479])), Entity(name=salome, label=Opera, properties=embeddings=array([ 0.00927054, -0.02301517, -0.01176917, ...,  0.00385197,\n",
      "       -0.01471849,  0.02227214])), Entity(name=wagnerian chromatic harmony, label=Technique, properties=embeddings=array([ 0.01711708, -0.03033969, -0.01917052, ...,  0.00233553,\n",
      "        0.0081035 , -0.00348336])), Entity(name=giacomo puccini, label=Person, properties=embeddings=array([-0.01206643, -0.00671155, -0.0087176 , ...,  0.0126267 ,\n",
      "       -0.00411974, -0.00798957])), Entity(name=hans pfitzner, label=Person, properties=embeddings=array([ 0.00318487,  0.0075696 , -0.01122728, ...,  0.01111978,\n",
      "        0.00079784, -0.0033844 ])), Entity(name=die frau ohne schatten, label=Opera, properties=embeddings=array([ 0.00254857, -0.02579534, -0.00585174, ..., -0.00178945,\n",
      "       -0.01017121,  0.01731363])), Entity(name=il trittico, label=Opera, properties=embeddings=array([-0.00872159, -0.01685464, -0.01149549, ...,  0.0063288 ,\n",
      "        0.00365065,  0.00868348])), Entity(name=bluebeard's castle, label=Opera, properties=embeddings=array([ 0.01882589, -0.00748381, -0.01424463, ..., -0.01559902,\n",
      "       -0.00438212,  0.00400016])), Entity(name=palestrina, label=Opera, properties=embeddings=array([-0.00235827,  0.00639001, -0.01505133, ...,  0.0041877 ,\n",
      "       -0.01204146,  0.01883388])), Entity(name=madama butterfly, label=Opera, properties=embeddings=array([ 0.00110737, -0.02226639, -0.01059672, ..., -0.0055654 ,\n",
      "       -0.00681782,  0.01378709])), Entity(name=pelléas et mélisande, label=Opera, properties=embeddings=array([-0.00801136,  0.00073456, -0.01184959, ..., -0.00154108,\n",
      "       -0.00629831,  0.01555433])), Entity(name=richard strauss, label=Person, properties=embeddings=array([ 0.03384245, -0.01202225, -0.0134519 , ..., -0.001041  ,\n",
      "       -0.00665737, -0.0069699 ])), Entity(name=doktor faust, label=Opera, properties=embeddings=array([ 1.38450444e-02, -1.18014326e-02, -1.30460883e-02, ...,\n",
      "        2.84772553e-03, -7.22826459e-05,  7.43053864e-03])), Entity(name=claude debussy, label=Person, properties=embeddings=array([-0.00168104, -0.00749708, -0.00696377, ..., -0.00437862,\n",
      "       -0.002404  , -0.00460803]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Salome', 'label': 'Opera'}, 'name': 'extended chromatic harmony in'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Die Frau ohne Schatten', 'label': 'Opera'}, 'name': 'extended chromatic harmony in'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Pelléas et Mélisande', 'label': 'Opera'}, 'name': 'used chromatic harmony in'}, {'startNode': {'name': 'Giacomo Puccini', 'label': 'Person'}, 'endNode': {'name': 'Madama Butterfly', 'label': 'Opera'}, 'name': 'incorporated chromatic harmony in'}, {'startNode': {'name': 'Giacomo Puccini', 'label': 'Person'}, 'endNode': {'name': 'Il trittico', 'label': 'Opera'}, 'name': 'incorporated chromatic harmony in'}, {'startNode': {'name': 'Ferruccio Busoni', 'label': 'Person'}, 'endNode': {'name': 'Doktor Faust', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'Philipp Jarnach', 'label': 'Person'}, 'endNode': {'name': 'Doktor Faust', 'label': 'Opera'}, 'name': 'completed posthumously'}, {'startNode': {'name': 'Béla Bartók', 'label': 'Person'}, 'endNode': {'name': \"Bluebeard's Castle\", 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'Hans Pfitzner', 'label': 'Person'}, 'endNode': {'name': 'Palestrina', 'label': 'Opera'}, 'name': 'used chromatic harmony in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=wagnerian chromatic harmony, label=Technique, properties=embeddings=array([ 0.01711708, -0.03033969, -0.01917052, ...,  0.00233553,\n",
      "        0.0081035 , -0.00348336]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Just Intonation', 'label': 'Technique'}, {'name': 'Harry Partch', 'label': 'Person'}, {'name': 'Ben Johnston', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'harry partch', 'label': 'Person'}, 'endNode': {'name': 'just intonation', 'label': 'Technique'}, 'name': 'explored'}, {'startNode': {'name': 'ben johnston', 'label': 'Person'}, 'endNode': {'name': 'just intonation', 'label': 'Technique'}, 'name': 'interested in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Easley Blackwood, Jr.', 'label': 'Person'}, {'name': 'Wendy Carlos', 'label': 'Person'}, {'name': 'Adriaan Fokker', 'label': 'Person'}, {'name': 'Terry Riley', 'label': 'Person'}, {'name': 'Ezra Sims', 'label': 'Person'}, {'name': 'Karlheinz Stockhausen', 'label': 'Person'}, {'name': 'La Monte Young', 'label': 'Person'}, {'name': 'Iannis Xenakis', 'label': 'Person'}, {'name': 'Microtonality', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'easley blackwood, jr.', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'uses'}, {'startNode': {'name': 'wendy carlos', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'employs'}, {'startNode': {'name': 'adriaan fokker', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'significant figure in'}, {'startNode': {'name': 'terry riley', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'utilizes'}, {'startNode': {'name': 'ezra sims', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'works with'}, {'startNode': {'name': 'karlheinz stockhausen', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'notable for'}, {'startNode': {'name': 'la monte young', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'key composer in'}, {'startNode': {'name': 'iannis xenakis', 'label': 'Person'}, 'endNode': {'name': 'microtonality', 'label': 'Technique'}, 'name': 'recognized for'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electronic Technology', 'label': 'Technique'}, {'name': 'Composers', 'label': 'Person'}, {'name': 'Post-World War II Era', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'composers', 'label': 'Person'}, 'endNode': {'name': 'electronic technology', 'label': 'Technique'}, 'name': 'adopted'}, {'startNode': {'name': 'electronic technology', 'label': 'Technique'}, 'endNode': {'name': 'post world war ii era', 'label': 'Time_Period'}, 'name': 'was adopted in'}, {'startNode': {'name': 'composers', 'label': 'Person'}, 'endNode': {'name': 'post world war ii era', 'label': 'Time_Period'}, 'name': 'were active in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass music', 'label': 'Music Genre'}, {'name': 'Appalachian music', 'label': 'Music Genre'}, {'name': 'Irish traditional music', 'label': 'Music Genre'}, {'name': 'Scottish traditional music', 'label': 'Music Genre'}, {'name': 'Welsh traditional music', 'label': 'Music Genre'}, {'name': 'English traditional music', 'label': 'Music Genre'}, {'name': 'African-American music', 'label': 'Music Genre'}, {'name': 'Jazz', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'appalachian music', 'label': 'Music_Genre'}, 'name': 'influenced by'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'irish traditional music', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'scottish traditional music', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'welsh traditional music', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'english traditional music', 'label': 'Music_Genre'}, 'name': 'has roots in'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'african american music', 'label': 'Music_Genre'}, 'name': 'influenced by'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'incorporated elements from'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Blues Music', 'label': 'Music Genre'}, {'name': 'Jazz Music', 'label': 'Music Genre'}, {'name': 'High and Lonesome Sound', 'label': 'Sound Characteristic'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'blues music', 'label': 'Music_Genre'}, 'endNode': {'name': 'high and lonesome sound', 'label': 'Sound_Characteristic'}, 'name': 'features'}, {'startNode': {'name': 'jazz music', 'label': 'Music_Genre'}, 'endNode': {'name': 'high and lonesome sound', 'label': 'Sound_Characteristic'}, 'name': 'features'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'John Cage', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=john cage, label=Person, properties=embeddings=array([ 0.01392445, -0.04120652, -0.01146303, ...,  0.00254466,\n",
      "       -0.00891647, -0.01455089]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=john cage, label=Person, properties=embeddings=array([ 0.01392445, -0.04120652, -0.01146303, ...,  0.00254466,\n",
      "       -0.00891647, -0.01455089]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=john cage, label=Person, properties=embeddings=array([ 0.01392445, -0.04120652, -0.01146303, ...,  0.00254466,\n",
      "       -0.00891647, -0.01455089]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Jazz', 'label': 'Music Genre'}, {'name': 'Smooth Jazz', 'label': 'Jazz Subgenre'}, {'name': 'Bebop', 'label': 'Jazz Subgenre'}, {'name': 'Swing', 'label': 'Jazz Subgenre'}, {'name': 'Fusion', 'label': 'Jazz Subgenre'}, {'name': 'Dixieland', 'label': 'Jazz Subgenre'}, {'name': 'Free Jazz', 'label': 'Jazz Subgenre'}, {'name': 'Blues', 'label': 'Music Style'}, {'name': 'Ragtime', 'label': 'Music Style'}, {'name': 'Brass Band Music', 'label': 'Music Style'}, {'name': 'Hymns', 'label': 'Music Style'}, {'name': 'Spirituals', 'label': 'Music Style'}, {'name': 'Minstrel Music', 'label': 'Music Style'}, {'name': 'Work Songs', 'label': 'Music Style'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'bebop', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'smooth jazz', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'swing', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'fusion', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'dixieland', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'free jazz', 'label': 'Jazz_Subgenre'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}, {'startNode': {'name': 'blues', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'influenced'}, {'startNode': {'name': 'ragtime', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'influenced'}, {'startNode': {'name': 'brass band music', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'influenced'}, {'startNode': {'name': 'hymns', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'contributed to'}, {'startNode': {'name': 'spirituals', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'contributed to'}, {'startNode': {'name': 'minstrel music', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'was part of the roots of'}, {'startNode': {'name': 'work songs', 'label': 'Music_Style'}, 'endNode': {'name': 'jazz', 'label': 'Music_Genre'}, 'name': 'was part of the roots of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Late-Romantic Nationalism', 'label': 'Musical Movement'}, {'name': 'Modernist Nationalism', 'label': 'Musical Movement'}, {'name': 'British Music Nationalism', 'label': 'Musical Movement'}, {'name': 'American Music Nationalism', 'label': 'Musical Movement'}, {'name': 'Latin-American Music Nationalism', 'label': 'Musical Movement'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'late romantic nationalism', 'label': 'Musical_Movement'}, 'endNode': {'name': 'modernist nationalism', 'label': 'Musical_Movement'}, 'name': 'appeared alongside'}, {'startNode': {'name': 'british music nationalism', 'label': 'Musical_Movement'}, 'endNode': {'name': 'modernist nationalism', 'label': 'Musical_Movement'}, 'name': 'included elements of'}, {'startNode': {'name': 'american music nationalism', 'label': 'Musical_Movement'}, 'endNode': {'name': 'modernist nationalism', 'label': 'Musical_Movement'}, 'name': 'featured elements of'}, {'startNode': {'name': 'latin american music nationalism', 'label': 'Musical_Movement'}, 'endNode': {'name': 'modernist nationalism', 'label': 'Musical_Movement'}, 'name': 'showed elements of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Minimalism', 'label': 'Technique'}, {'name': 'Symphonic Music', 'label': 'Process'}, {'name': 'Steve Reich', 'label': 'Person'}, {'name': 'Philip Glass', 'label': 'Person'}, {'name': 'John Adams', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'minimalism', 'label': 'Technique'}, 'endNode': {'name': 'symphonic music', 'label': 'Process'}, 'name': 'adapted to'}, {'startNode': {'name': 'steve reich', 'label': 'Person'}, 'endNode': {'name': 'minimalism', 'label': 'Technique'}, 'name': 'involved in'}, {'startNode': {'name': 'philip glass', 'label': 'Person'}, 'endNode': {'name': 'minimalism', 'label': 'Technique'}, 'name': 'involved in'}, {'startNode': {'name': 'john adams', 'label': 'Person'}, 'endNode': {'name': 'minimalism', 'label': 'Technique'}, 'name': 'involved in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'The Moody Blues', 'label': 'Musical Group'}, {'name': 'The Beatles', 'label': 'Musical Group'}, {'name': 'The Monkees', 'label': 'Musical Group'}, {'name': 'The Doors', 'label': 'Musical Group'}, {'name': 'Synthesizers', 'label': 'Musical Instrument'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'the moody blues', 'label': 'Musical_Group'}, 'endNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'name': 'early users of'}, {'startNode': {'name': 'the beatles', 'label': 'Musical_Group'}, 'endNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'name': 'adopted early on'}, {'startNode': {'name': 'the monkees', 'label': 'Musical_Group'}, 'endNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'name': 'among the first to use'}, {'startNode': {'name': 'the doors', 'label': 'Musical_Group'}, 'endNode': {'name': 'synthesizers', 'label': 'Musical_Instrument'}, 'name': 'early adopters of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Process', 'name': 'Composing in the 20th and 21st centuries'}, {'label': 'Person', 'name': '20th-century composers'}, {'label': 'Person', 'name': '21st-century composers'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': '20th century composers', 'label': 'Person'}, 'endNode': {'name': '21st century composers', 'label': 'Person'}, 'name': 'continued into'}, {'startNode': {'name': '20th century composers', 'label': 'Person'}, 'endNode': {'name': 'composing in the 20th and 21st centuries', 'label': 'Process'}, 'name': 'engaged in'}, {'startNode': {'name': '21st century composers', 'label': 'Person'}, 'endNode': {'name': 'composing in the 20th and 21st centuries', 'label': 'Process'}, 'name': 'engaged in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass Music', 'label': 'Music Genre'}, {'name': 'British Isles', 'label': 'Geographical Region'}, {'name': 'Traditional Bluegrass Songs', 'label': 'Music Category'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'british isles', 'label': 'Geographical_Region'}, 'endNode': {'name': 'traditional bluegrass songs', 'label': 'Music_Category'}, 'name': 'source_of'}, {'startNode': {'name': 'bluegrass music', 'label': 'Music_Genre'}, 'endNode': {'name': 'traditional bluegrass songs', 'label': 'Music_Category'}, 'name': 'includes'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Minimalism', 'label': 'Process'}, {'name': 'Arvo Pärt', 'label': 'Person'}, {'name': 'Henryk Górecki', 'label': 'Person'}, {'name': 'John Tavener', 'label': 'Person'}, {'name': 'Holy Minimalism', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'arvo pärt', 'label': 'Person'}, 'endNode': {'name': 'holy minimalism', 'label': 'Technique'}, 'name': 'works in'}, {'startNode': {'name': 'henryk górecki', 'label': 'Person'}, 'endNode': {'name': 'holy minimalism', 'label': 'Technique'}, 'name': 'works in'}, {'startNode': {'name': 'john tavener', 'label': 'Person'}, 'endNode': {'name': 'holy minimalism', 'label': 'Technique'}, 'name': 'works in'}, {'startNode': {'name': 'holy minimalism', 'label': 'Technique'}, 'endNode': {'name': 'minimalism', 'label': 'Process'}, 'name': 'is a form of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Minimalist music', 'label': 'Music Style'}, {'name': 'Terry Riley', 'label': 'Person'}, {'name': 'Steve Reich', 'label': 'Person'}, {'name': 'Philip Glass', 'label': 'Person'}, {'name': 'Repetition of motives', 'label': 'Technique'}, {'name': 'Late 1950s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'minimalist music', 'label': 'Music_Style'}, 'endNode': {'name': 'repetition of motives', 'label': 'Technique'}, 'name': 'involves'}, {'startNode': {'name': 'minimalist music', 'label': 'Music_Style'}, 'endNode': {'name': 'late 1950s', 'label': 'Time_Period'}, 'name': 'began in'}, {'startNode': {'name': 'terry riley', 'label': 'Person'}, 'endNode': {'name': 'minimalist music', 'label': 'Music_Style'}, 'name': 'pioneered'}, {'startNode': {'name': 'steve reich', 'label': 'Person'}, 'endNode': {'name': 'minimalist music', 'label': 'Music_Style'}, 'name': 'contributed to'}, {'startNode': {'name': 'philip glass', 'label': 'Person'}, 'endNode': {'name': 'minimalist music', 'label': 'Music_Style'}, 'name': 'known for'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Karl V', 'label': 'Opera'}, {'name': 'Ernst Krenek', 'label': 'Person'}, {'name': 'Twelve-tone technique', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'karl v', 'label': 'Opera'}, 'endNode': {'name': 'twelve tone technique', 'label': 'Technique'}, 'name': 'uses'}, {'startNode': {'name': 'ernst krenek', 'label': 'Person'}, 'endNode': {'name': 'karl v', 'label': 'Opera'}, 'name': 'composed'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Concept', 'name': 'Song Title Variations'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'song title variations', 'label': 'Concept'}, 'endNode': {'name': 'song title variations', 'label': 'Concept'}, 'name': 'can have different names in various regions'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'The Twa Sisters', 'label': 'Work'}, {'name': 'England', 'label': 'Place'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'the twa sisters', 'label': 'Work'}, 'endNode': {'name': 'england', 'label': 'Place'}, 'name': 'originates from'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Broadway tunes', 'label': 'Popular Music'}, {'name': 'Ballads', 'label': 'Popular Music'}, {'name': 'Frank Sinatra', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'broadway tunes', 'label': 'Popular_Music'}, 'endNode': {'name': 'ballads', 'label': 'Popular_Music'}, 'name': 'are part of'}, {'startNode': {'name': 'frank sinatra', 'label': 'Person'}, 'endNode': {'name': 'ballads', 'label': 'Popular_Music'}, 'name': 'associated with'}, {'startNode': {'name': 'frank sinatra', 'label': 'Person'}, 'endNode': {'name': 'broadway tunes', 'label': 'Popular_Music'}, 'name': 'associated with'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Popular Music', 'label': 'Musical Genre'}, {'name': 'Pop Music', 'label': 'Musical Genre'}, {'name': 'Musical Styles', 'label': 'Concept'}, {'name': 'Mass Consumption', 'label': 'Process'}, {'name': 'Commercial Purposes', 'label': 'Purpose'}, {'name': 'Popular Culture', 'label': 'Cultural Phenomenon'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'pop music', 'label': 'Musical_Genre'}, 'endNode': {'name': 'musical styles', 'label': 'Concept'}, 'name': 'includes'}, {'startNode': {'name': 'popular music', 'label': 'Musical_Genre'}, 'endNode': {'name': 'musical styles', 'label': 'Concept'}, 'name': 'includes'}, {'startNode': {'name': 'popular music', 'label': 'Musical_Genre'}, 'endNode': {'name': 'mass consumption', 'label': 'Process'}, 'name': 'intended for'}, {'startNode': {'name': 'popular music', 'label': 'Musical_Genre'}, 'endNode': {'name': 'commercial purposes', 'label': 'Purpose'}, 'name': 'distributed for'}, {'startNode': {'name': 'popular music', 'label': 'Musical_Genre'}, 'endNode': {'name': 'popular culture', 'label': 'Cultural_Phenomenon'}, 'name': 'part of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Gramophone Records', 'label': 'Technology'}, {'name': 'Live Music', 'label': 'Event'}, {'name': 'Radio Broadcasting', 'label': 'Technology'}, {'name': 'Classical Music Concerts', 'label': 'Event'}, {'name': 'Musical Theatre Shows', 'label': 'Event'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'gramophone records', 'label': 'Technology'}, 'endNode': {'name': 'live music', 'label': 'Event'}, 'name': 'replaced'}, {'startNode': {'name': 'radio broadcasting', 'label': 'Technology'}, 'endNode': {'name': 'live music', 'label': 'Event'}, 'name': 'replaced'}, {'startNode': {'name': 'classical music concerts', 'label': 'Event'}, 'endNode': {'name': 'live music', 'label': 'Event'}, 'name': 'were a source of'}, {'startNode': {'name': 'musical theatre shows', 'label': 'Event'}, 'endNode': {'name': 'live music', 'label': 'Event'}, 'name': 'were a source of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Saxophone', 'label': 'Musical Instrument'}, {'name': 'Vaughan Williams', 'label': 'Composer'}, {'name': 'Symphony No.6', 'label': 'Musical Work'}, {'name': 'Symphony No.9', 'label': 'Musical Work'}, {'name': 'William Walton', 'label': 'Composer'}, {'name': \"Belshazzar's Feast\", 'label': 'Musical Work'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'symphony no.6', 'label': 'Musical_Work'}, 'endNode': {'name': 'saxophone', 'label': 'Musical_Instrument'}, 'name': 'includes'}, {'startNode': {'name': 'symphony no.9', 'label': 'Musical_Work'}, 'endNode': {'name': 'saxophone', 'label': 'Musical_Instrument'}, 'name': 'includes'}, {'startNode': {'name': \"belshazzar's feast\", 'label': 'Musical_Work'}, 'endNode': {'name': 'saxophone', 'label': 'Musical_Instrument'}, 'name': 'includes'}, {'startNode': {'name': 'vaughan williams', 'label': 'Composer'}, 'endNode': {'name': 'symphony no.6', 'label': 'Musical_Work'}, 'name': 'composed'}, {'startNode': {'name': 'vaughan williams', 'label': 'Composer'}, 'endNode': {'name': 'symphony no.9', 'label': 'Musical_Work'}, 'name': 'composed'}, {'startNode': {'name': 'william walton', 'label': 'Composer'}, 'endNode': {'name': \"belshazzar's feast\", 'label': 'Musical_Work'}, 'name': 'composed'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'People from the UK and Ireland', 'label': 'Group'}, {'name': 'Appalachia', 'label': 'Region'}, {'name': '1700s', 'label': 'Time Period'}, {'name': 'Musical Traditions', 'label': 'Cultural Element'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'people from the uk and ireland', 'label': 'Group'}, 'endNode': {'name': 'appalachia', 'label': 'Region'}, 'name': 'settled in'}, {'startNode': {'name': 'people from the uk and ireland', 'label': 'Group'}, 'endNode': {'name': '1700s', 'label': 'Time_Period'}, 'name': 'settled during'}, {'startNode': {'name': 'people from the uk and ireland', 'label': 'Group'}, 'endNode': {'name': 'musical traditions', 'label': 'Cultural_Element'}, 'name': 'brought'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Music Genre', 'name': 'Appalachian Bluegrass'}, {'label': 'Music Tradition', 'name': 'English Ballad Tradition'}, {'label': 'Song', 'name': 'Pretty Saro'}, {'label': 'Song', 'name': 'Barbara Allen'}, {'label': 'Song', 'name': 'Cuckoo Bird'}, {'label': 'Song', 'name': 'House Carpenter'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'pretty saro', 'label': 'Song'}, 'endNode': {'name': 'appalachian bluegrass', 'label': 'Music_Genre'}, 'name': 'originates from'}, {'startNode': {'name': 'barbara allen', 'label': 'Song'}, 'endNode': {'name': 'appalachian bluegrass', 'label': 'Music_Genre'}, 'name': 'originates from'}, {'startNode': {'name': 'cuckoo bird', 'label': 'Song'}, 'endNode': {'name': 'appalachian bluegrass', 'label': 'Music_Genre'}, 'name': 'originates from'}, {'startNode': {'name': 'house carpenter', 'label': 'Song'}, 'endNode': {'name': 'appalachian bluegrass', 'label': 'Music_Genre'}, 'name': 'originates from'}, {'startNode': {'name': 'pretty saro', 'label': 'Song'}, 'endNode': {'name': 'english ballad tradition', 'label': 'Music_Tradition'}, 'name': 'preserves'}, {'startNode': {'name': 'barbara allen', 'label': 'Song'}, 'endNode': {'name': 'english ballad tradition', 'label': 'Music_Tradition'}, 'name': 'preserves'}, {'startNode': {'name': 'cuckoo bird', 'label': 'Song'}, 'endNode': {'name': 'english ballad tradition', 'label': 'Music_Tradition'}, 'name': 'preserves'}, {'startNode': {'name': 'house carpenter', 'label': 'Song'}, 'endNode': {'name': 'english ballad tradition', 'label': 'Music_Tradition'}, 'name': 'preserves'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Postmodernism', 'label': 'Category'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=postmodernism, label=Category, properties=embeddings=array([-0.02190133,  0.02491156, -0.02264305, ..., -0.01112582,\n",
      "       -0.00028653,  0.0094908 ]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=postmodernism, label=Category, properties=embeddings=array([-0.02190133,  0.02491156, -0.02264305, ..., -0.01112582,\n",
      "       -0.00028653,  0.0094908 ]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=postmodernism, label=Category, properties=embeddings=array([-0.02190133,  0.02491156, -0.02264305, ..., -0.01112582,\n",
      "       -0.00028653,  0.0094908 ]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Leather Britches', 'label': 'Song'}, {'name': 'Pretty Polly', 'label': 'Song'}, {'name': 'Appalachia', 'label': 'Region'}, {'name': 'Scottish roots', 'label': 'Cultural Origin'}, {'name': 'Bluegrass fiddle', 'label': 'Music Genre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'leather britches', 'label': 'Song'}, 'endNode': {'name': 'bluegrass fiddle', 'label': 'Music_Genre'}, 'name': 'is a popular song in'}, {'startNode': {'name': 'leather britches', 'label': 'Song'}, 'endNode': {'name': 'appalachia', 'label': 'Region'}, 'name': 'is popular in'}, {'startNode': {'name': 'leather britches', 'label': 'Song'}, 'endNode': {'name': 'scottish roots', 'label': 'Cultural_Origin'}, 'name': 'has origins in'}, {'startNode': {'name': 'pretty polly', 'label': 'Song'}, 'endNode': {'name': 'scottish roots', 'label': 'Cultural_Origin'}, 'name': 'has origins in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Oliver Knussen', 'label': 'Person'}, {'name': 'Thomas Adès', 'label': 'Person'}, {'name': 'Michael Daugherty', 'label': 'Person'}, {'name': '21st-century classical composers', 'label': 'Category'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'Oliver Knussen', 'label': 'Person'}, 'endNode': {'name': '21st century classical composers', 'label': 'Category'}, 'name': 'preceded'}, {'startNode': {'name': 'Thomas Adès', 'label': 'Person'}, 'endNode': {'name': '21st century classical composers', 'label': 'Category'}, 'name': 'preceded'}, {'startNode': {'name': 'Michael Daugherty', 'label': 'Person'}, 'endNode': {'name': '21st century classical composers', 'label': 'Category'}, 'name': 'preceded'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Sound Recording', 'label': 'Technique'}, {'name': 'Popular Music Genres', 'label': 'Category'}, {'name': 'Songs', 'label': 'Entity'}, {'name': 'Bands', 'label': 'Entity'}, {'name': 'Recordings', 'label': 'Entity'}, {'name': 'Nationwide Audience', 'label': 'Audience'}, {'name': 'Worldwide Distribution', 'label': 'Process'}, {'name': 'Artists', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'popular music genres', 'label': 'Category'}, 'name': 'influenced'}, {'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'songs', 'label': 'Entity'}, 'name': 'allowed to be recorded'}, {'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'bands', 'label': 'Entity'}, 'name': 'allowed to be recorded'}, {'startNode': {'name': 'recordings', 'label': 'Entity'}, 'endNode': {'name': 'nationwide audience', 'label': 'Audience'}, 'name': 'could reach'}, {'startNode': {'name': 'recordings', 'label': 'Entity'}, 'endNode': {'name': 'worldwide distribution', 'label': 'Process'}, 'name': 'achieved by some artists'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=artists, label=Person, properties=embeddings=array([-0.00345556,  0.02390278, -0.02475075, ..., -0.00221639,\n",
      "        0.01195155, -0.00049432]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=popular music genres, label=Category, properties=embeddings=array([ 0.00582331,  0.01227731, -0.02957634, ...,  0.00573767,\n",
      "        0.00190344,  0.01125775])), Entity(name=songs, label=Entity, properties=embeddings=array([-0.00138422,  0.03092257, -0.01931299, ...,  0.00941106,\n",
      "        0.00504526,  0.00281528])), Entity(name=recordings, label=Entity, properties=embeddings=array([-0.01401943,  0.01748501, -0.02031105, ..., -0.01285187,\n",
      "       -0.00195473, -0.00578002])), Entity(name=sound recording, label=Technique, properties=embeddings=array([ 0.0186546 , -0.00554285, -0.01497024, ..., -0.01482946,\n",
      "       -0.00125634,  0.0038313 ])), Entity(name=artists, label=Person, properties=embeddings=array([-0.00345556,  0.02390278, -0.02475075, ..., -0.00221639,\n",
      "        0.01195155, -0.00049432])), Entity(name=worldwide distribution, label=Process, properties=embeddings=array([ 0.00548611,  0.00602987, -0.00702426, ..., -0.00033348,\n",
      "        0.00091189,  0.00272955])), Entity(name=bands, label=Entity, properties=embeddings=array([-0.01245   ,  0.0131026 , -0.02501698, ...,  0.01001028,\n",
      "        0.00326234, -0.00343976])), Entity(name=nationwide audience, label=Audience, properties=embeddings=array([ 0.01376204,  0.01043689, -0.0208461 , ...,  0.00810828,\n",
      "        0.02835506, -0.00389117]))]. Solving them ...\n",
      "{'relationships': [{'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'popular music genres', 'label': 'Category'}, 'name': 'influences'}, {'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'songs', 'label': 'Entity'}, 'name': 'records'}, {'startNode': {'name': 'sound recording', 'label': 'Technique'}, 'endNode': {'name': 'bands', 'label': 'Entity'}, 'name': 'records'}, {'startNode': {'name': 'recordings', 'label': 'Entity'}, 'endNode': {'name': 'nationwide audience', 'label': 'Audience'}, 'name': 'reach'}, {'startNode': {'name': 'recordings', 'label': 'Entity'}, 'endNode': {'name': 'worldwide distribution', 'label': 'Process'}, 'name': 'achieve'}, {'startNode': {'name': 'artists', 'label': 'Person'}, 'endNode': {'name': 'worldwide distribution', 'label': 'Process'}, 'name': 'achieve'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] Wohoo! Relation was matched --- [influences] --merged --> [influenced] \n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': '20th Century', 'label': 'Time Period'}, {'name': 'Music', 'label': 'Art Form'}, {'name': 'New Musical Forms', 'label': 'Concept'}, {'name': 'Innovative Styles', 'label': 'Concept'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': '20th century', 'label': 'Time_Period'}, 'endNode': {'name': 'new musical forms', 'label': 'Concept'}, 'name': 'emerged during'}, {'startNode': {'name': '20th century', 'label': 'Time_Period'}, 'endNode': {'name': 'innovative styles', 'label': 'Concept'}, 'name': 'developed in'}, {'startNode': {'name': 'new musical forms', 'label': 'Concept'}, 'endNode': {'name': 'music', 'label': 'Art_Form'}, 'name': 'are forms of'}, {'startNode': {'name': 'innovative styles', 'label': 'Concept'}, 'endNode': {'name': 'music', 'label': 'Art_Form'}, 'name': 'are styles of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': '20th-century orchestra', 'label': 'Entity'}, {'name': 'adaptability', 'label': 'Characteristic'}, {'name': 'variety of instruments', 'label': 'Characteristic'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': '20th century orchestra', 'label': 'Entity'}, 'endNode': {'name': 'adaptability', 'label': 'Characteristic'}, 'name': 'has characteristic'}, {'startNode': {'name': '20th century orchestra', 'label': 'Entity'}, 'endNode': {'name': 'variety of instruments', 'label': 'Characteristic'}, 'name': 'has characteristic'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Cumberland Gap', 'label': 'Dance Tune'}, {'name': 'Bonnie George Campbell', 'label': 'Scottish Ballad'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'cumberland gap', 'label': 'Dance_Tune'}, 'endNode': {'name': 'bonnie george campbell', 'label': 'Scottish_Ballad'}, 'name': 'may have origins in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Guitar Amplifiers', 'label': 'Technology'}, {'name': 'Sound Reinforcement Systems', 'label': 'Technology'}, {'name': 'Bands', 'label': 'Group'}, {'name': 'Large Concerts', 'label': 'Event'}, {'name': '1960s', 'label': 'Time Period'}, {'name': '1970s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'guitar amplifiers', 'label': 'Technology'}, 'endNode': {'name': '1960s', 'label': 'Time_Period'}, 'name': 'developed in'}, {'startNode': {'name': 'guitar amplifiers', 'label': 'Technology'}, 'endNode': {'name': '1970s', 'label': 'Time_Period'}, 'name': 'developed in'}, {'startNode': {'name': 'sound reinforcement systems', 'label': 'Technology'}, 'endNode': {'name': '1960s', 'label': 'Time_Period'}, 'name': 'emerged in'}, {'startNode': {'name': 'sound reinforcement systems', 'label': 'Technology'}, 'endNode': {'name': '1970s', 'label': 'Time_Period'}, 'name': 'emerged in'}, {'startNode': {'name': 'bands', 'label': 'Group'}, 'endNode': {'name': 'large concerts', 'label': 'Event'}, 'name': 'perform at'}, {'startNode': {'name': 'sound reinforcement systems', 'label': 'Technology'}, 'endNode': {'name': 'large concerts', 'label': 'Event'}, 'name': 'used in'}, {'startNode': {'name': 'guitar amplifiers', 'label': 'Technology'}, 'endNode': {'name': 'large concerts', 'label': 'Event'}, 'name': 'used in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Vinyl Records', 'label': 'Format'}, {'name': 'Compact Cassettes', 'label': 'Format'}, {'name': 'Compact Discs', 'label': 'Format'}, {'name': 'Digital Audio Recordings', 'label': 'Format'}, {'name': 'Radio', 'label': 'Broadcast Medium'}, {'name': 'Television', 'label': 'Broadcast Medium'}, {'name': 'Internet', 'label': 'Distribution Medium'}, {'name': 'File Sharing', 'label': 'Technique'}, {'name': 'Music Reproduction', 'label': 'Process'}, {'name': 'Music Performances', 'label': 'Event'}, {'name': 'High-Quality Music Performances', 'label': 'Event'}, {'name': 'Global Artists', 'label': 'Person'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'music reproduction', 'label': 'Process'}, 'endNode': {'name': 'vinyl records', 'label': 'Format'}, 'name': 'includes'}, {'startNode': {'name': 'music reproduction', 'label': 'Process'}, 'endNode': {'name': 'compact cassettes', 'label': 'Format'}, 'name': 'includes'}, {'startNode': {'name': 'music reproduction', 'label': 'Process'}, 'endNode': {'name': 'compact discs', 'label': 'Format'}, 'name': 'includes'}, {'startNode': {'name': 'music reproduction', 'label': 'Process'}, 'endNode': {'name': 'digital audio recordings', 'label': 'Format'}, 'name': 'includes'}, {'startNode': {'name': 'music performances', 'label': 'Event'}, 'endNode': {'name': 'radio', 'label': 'Broadcast_Medium'}, 'name': 'broadcasted_on'}, {'startNode': {'name': 'music performances', 'label': 'Event'}, 'endNode': {'name': 'television', 'label': 'Broadcast_Medium'}, 'name': 'broadcasted_on'}, {'startNode': {'name': 'digital audio recordings', 'label': 'Format'}, 'endNode': {'name': 'internet', 'label': 'Distribution_Medium'}, 'name': 'shared_via'}, {'startNode': {'name': 'digital audio recordings', 'label': 'Format'}, 'endNode': {'name': 'file sharing', 'label': 'Technique'}, 'name': 'accessed_through'}, {'startNode': {'name': 'high quality music performances', 'label': 'Event'}, 'endNode': {'name': 'global artists', 'label': 'Person'}, 'name': 'performed_by'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Sound recording technology', 'label': 'Technology'}, {'name': 'Audio engineering technologies', 'label': 'Technology'}, {'name': 'Editing of recordings', 'label': 'Process'}, {'name': 'Subgenres of classical music', 'label': 'Category'}, {'name': 'Musique concrète', 'label': 'Subgenre'}, {'name': 'Acousmatic school of electronic composition', 'label': 'Subgenre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'sound recording technology', 'label': 'Technology'}, 'endNode': {'name': 'audio engineering technologies', 'label': 'Technology'}, 'name': 'has evolved into'}, {'startNode': {'name': 'audio engineering technologies', 'label': 'Technology'}, 'endNode': {'name': 'editing of recordings', 'label': 'Process'}, 'name': 'allow for'}, {'startNode': {'name': 'subgenres of classical music', 'label': 'Category'}, 'endNode': {'name': 'musique concrète', 'label': 'Subgenre'}, 'name': 'includes'}, {'startNode': {'name': 'subgenres of classical music', 'label': 'Category'}, 'endNode': {'name': 'acousmatic school of electronic composition', 'label': 'Subgenre'}, 'name': 'includes'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Multitrack recording', 'label': 'Technique'}, {'name': 'Mixing', 'label': 'Process'}, {'name': 'Overdubbing', 'label': 'Technique'}, {'name': 'Pop music', 'label': 'Genre'}, {'name': 'Rock music', 'label': 'Genre'}, {'name': 'Record producers', 'label': 'Role'}, {'name': 'Instrument tracks', 'label': 'Data Structure'}, {'name': 'Vocal tracks', 'label': 'Data Structure'}, {'name': 'New sounds', 'label': 'Outcome'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'multitrack recording', 'label': 'Technique'}, 'endNode': {'name': 'mixing', 'label': 'Process'}, 'name': 'enables'}, {'startNode': {'name': 'mixing', 'label': 'Process'}, 'endNode': {'name': 'pop music', 'label': 'Genre'}, 'name': 'influences'}, {'startNode': {'name': 'mixing', 'label': 'Process'}, 'endNode': {'name': 'rock music', 'label': 'Genre'}, 'name': 'influences'}, {'startNode': {'name': 'record producers', 'label': 'Role'}, 'endNode': {'name': 'instrument tracks', 'label': 'Data_Structure'}, 'name': 'mix'}, {'startNode': {'name': 'record producers', 'label': 'Role'}, 'endNode': {'name': 'vocal tracks', 'label': 'Data_Structure'}, 'name': 'overdub'}, {'startNode': {'name': 'overdubbing', 'label': 'Technique'}, 'endNode': {'name': 'new sounds', 'label': 'Outcome'}, 'name': 'creates'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Benjamin Britten', 'label': 'Person'}, {'name': 'Peter Grimes', 'label': 'Opera'}, {'name': 'Billy Budd', 'label': 'Opera'}, {'name': 'The Turn of the Screw', 'label': 'Opera'}, {'name': \"A Midsummer Night's Dream\", 'label': 'Opera'}, {'name': 'Death in Venice', 'label': 'Opera'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'benjamin britten', 'label': 'Person'}, 'endNode': {'name': 'peter grimes', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'benjamin britten', 'label': 'Person'}, 'endNode': {'name': 'billy budd', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'benjamin britten', 'label': 'Person'}, 'endNode': {'name': 'the turn of the screw', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'benjamin britten', 'label': 'Person'}, 'endNode': {'name': \"a midsummer night's dream\", 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'benjamin britten', 'label': 'Person'}, 'endNode': {'name': 'death in venice', 'label': 'Opera'}, 'name': 'composed'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Musique concrète', 'label': 'Type of Music'}, {'name': 'France', 'label': 'Country'}, {'name': '1948', 'label': 'Year'}, {'name': 'Pierre Schaeffer', 'label': 'Person'}, {'name': 'Recorded sounds', 'label': 'Raw Material'}, {'name': 'Experimental technique', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'musique concrète', 'label': 'Type_of_Music'}, 'endNode': {'name': 'france', 'label': 'Country'}, 'name': 'developed in'}, {'startNode': {'name': 'musique concrète', 'label': 'Type_of_Music'}, 'endNode': {'name': '1948', 'label': 'Year'}, 'name': 'developed around'}, {'startNode': {'name': 'pierre schaeffer', 'label': 'Person'}, 'endNode': {'name': 'musique concrète', 'label': 'Type_of_Music'}, 'name': 'involved in creation of'}, {'startNode': {'name': 'musique concrète', 'label': 'Type_of_Music'}, 'endNode': {'name': 'recorded sounds', 'label': 'Raw_Material'}, 'name': 'uses'}, {'startNode': {'name': 'musique concrète', 'label': 'Type_of_Music'}, 'endNode': {'name': 'experimental technique', 'label': 'Technique'}, 'name': 'is an'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Classical Music', 'label': 'Music Genre'}, {'name': 'Popular Music', 'label': 'Music Genre'}, {'name': 'Value of Classical Music', 'label': 'Debate Topic'}, {'name': 'Value of Popular Music', 'label': 'Debate Topic'}, {'name': 'Relationship between Classical and Popular Music', 'label': 'Controversial Topic'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'value of classical music', 'label': 'Debate_Topic'}, 'endNode': {'name': 'classical music', 'label': 'Music_Genre'}, 'name': 'is_about'}, {'startNode': {'name': 'value of popular music', 'label': 'Debate_Topic'}, 'endNode': {'name': 'popular music', 'label': 'Music_Genre'}, 'name': 'is_about'}, {'startNode': {'name': 'relationship between classical and popular music', 'label': 'Controversial_Topic'}, 'endNode': {'name': 'classical music', 'label': 'Music_Genre'}, 'name': 'involves'}, {'startNode': {'name': 'relationship between classical and popular music', 'label': 'Controversial_Topic'}, 'endNode': {'name': 'popular music', 'label': 'Music_Genre'}, 'name': 'involves'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Bluegrass', 'label': 'Music Genre'}, {'name': 'Main Subgenres', 'label': 'Category'}, {'name': 'Unofficial Subgenre', 'label': 'Category'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'main subgenres', 'label': 'Category'}, 'endNode': {'name': 'bluegrass', 'label': 'Music_Genre'}, 'name': 'are subgenres of'}, {'startNode': {'name': 'unofficial subgenre', 'label': 'Category'}, 'endNode': {'name': 'bluegrass', 'label': 'Music_Genre'}, 'name': 'is a subgenre of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'label': 'Person', 'name': 'Igor Stravinsky'}, {'label': 'School of Neoclassicism', 'name': \"Stravinsky's School\"}, {'label': 'Person', 'name': 'Paul Hindemith'}, {'label': 'School of Neoclassicism', 'name': \"Hindemith's School\"}, {'label': 'Person', 'name': 'Arnold Schoenberg'}, {'label': 'School of Neoclassicism', 'name': \"Schoenberg's School\"}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'igor stravinsky', 'label': 'Person'}, 'endNode': {'name': \"stravinsky's school\", 'label': 'School_of_Neoclassicism'}, 'name': 'associated_with'}, {'startNode': {'name': 'paul hindemith', 'label': 'Person'}, 'endNode': {'name': \"hindemith's school\", 'label': 'School_of_Neoclassicism'}, 'name': 'linked_to'}, {'startNode': {'name': 'arnold schoenberg', 'label': 'Person'}, 'endNode': {'name': \"schoenberg's school\", 'label': 'School_of_Neoclassicism'}, 'name': 'connected_to'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'English Ballads', 'label': 'Tradition'}, {'name': 'Scottish Ballads', 'label': 'Tradition'}, {'name': 'Ballads', 'label': 'Narrative'}, {'name': 'Dance Music', 'label': 'Tradition'}, {'name': 'Irish Reels', 'label': 'Dance Music'}, {'name': 'Fiddle', 'label': 'Instrument'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'english ballads', 'label': 'Tradition'}, 'endNode': {'name': 'ballads', 'label': 'Narrative'}, 'name': 'include'}, {'startNode': {'name': 'scottish ballads', 'label': 'Tradition'}, 'endNode': {'name': 'ballads', 'label': 'Narrative'}, 'name': 'include'}, {'startNode': {'name': 'dance music', 'label': 'Tradition'}, 'endNode': {'name': 'irish reels', 'label': 'Dance_Music'}, 'name': 'include'}, {'startNode': {'name': 'irish reels', 'label': 'Dance_Music'}, 'endNode': {'name': 'fiddle', 'label': 'Instrument'}, 'name': 'accompanied by'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Middle-Class Skills', 'label': 'Concept'}, {'name': 'Upper-Class Skills', 'label': 'Concept'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'middle class skills', 'label': 'Concept'}, 'endNode': {'name': 'upper class skills', 'label': 'Concept'}, 'name': 'often possessed by'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Classical Music', 'label': 'Genre'}, {'name': 'Symphonies', 'label': 'Performance Type'}, {'name': 'Operas', 'label': 'Performance Type'}, {'name': 'Live Performances', 'label': 'Event Type'}, {'name': 'Affordability', 'label': 'Economic Factor'}, {'name': 'Regional Availability', 'label': 'Geographical Factor'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'live performances', 'label': 'Event_Type'}, 'endNode': {'name': 'affordability', 'label': 'Economic_Factor'}, 'name': 'affected by'}, {'startNode': {'name': 'classical music', 'label': 'Genre'}, 'endNode': {'name': 'regional availability', 'label': 'Geographical_Factor'}, 'name': 'limited by'}, {'startNode': {'name': 'classical music', 'label': 'Genre'}, 'endNode': {'name': 'symphonies', 'label': 'Performance_Type'}, 'name': 'includes'}, {'startNode': {'name': 'classical music', 'label': 'Genre'}, 'endNode': {'name': 'operas', 'label': 'Performance_Type'}, 'name': 'includes'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'String Section', 'label': 'Instrument Group'}, {'name': 'Woodwinds', 'label': 'Instrument Group'}, {'name': 'Brass Instruments', 'label': 'Instrument Group'}, {'name': 'Percussion Instruments', 'label': 'Instrument Group'}, {'name': 'Piano', 'label': 'Instrument'}, {'name': 'Celeste', 'label': 'Instrument'}, {'name': 'Harp', 'label': 'Instrument'}, {'name': 'Electric Guitar', 'label': 'Instrument'}, {'name': 'Electric Bass', 'label': 'Instrument'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'string section', 'label': 'Instrument_Group'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'woodwinds', 'label': 'Instrument_Group'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'brass instruments', 'label': 'Instrument_Group'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'percussion instruments', 'label': 'Instrument_Group'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'piano', 'label': 'Instrument'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'celeste', 'label': 'Instrument'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'part of'}, {'startNode': {'name': 'harp', 'label': 'Instrument'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'sometimes used in'}, {'startNode': {'name': 'electric guitar', 'label': 'Instrument'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'occasionally used in'}, {'startNode': {'name': 'electric bass', 'label': 'Instrument'}, 'endNode': {'name': 'twentieth-century orchestras', 'label': 'Context'}, 'name': 'sometimes included in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO][INVENTED ENTITIES] Aie; the entities label='Context' name='twentieth century orchestras' properties=EntityProperties(embeddings=None) is invented. Solving it ...\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Sound Recording Technology', 'label': 'Technology'}, {'name': 'Popular Music', 'label': 'Music Genre'}, {'name': 'Mass Marketing', 'label': 'Process'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'sound recording technology', 'label': 'Technology'}, 'endNode': {'name': 'popular music', 'label': 'Music_Genre'}, 'name': 'linked to'}, {'startNode': {'name': 'sound recording technology', 'label': 'Technology'}, 'endNode': {'name': 'popular music', 'label': 'Music_Genre'}, 'name': 'played a key role in the creation of'}, {'startNode': {'name': 'sound recording technology', 'label': 'Technology'}, 'endNode': {'name': 'mass marketing', 'label': 'Process'}, 'name': 'enabled'}, {'startNode': {'name': 'mass marketing', 'label': 'Process'}, 'endNode': {'name': 'popular music', 'label': 'Music_Genre'}, 'name': 'of'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Gramophone Records', 'label': 'Product'}, {'name': 'Radio Broadcasts', 'label': 'Technology'}, {'name': 'Music Recordings', 'label': 'Product'}, {'name': 'Live Music Broadcasts', 'label': 'Service'}, {'name': 'Global Music Accessibility', 'label': 'Phenomenon'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'gramophone records', 'label': 'Product'}, 'endNode': {'name': 'global music accessibility', 'label': 'Phenomenon'}, 'name': 'contributed to'}, {'startNode': {'name': 'radio broadcasts', 'label': 'Technology'}, 'endNode': {'name': 'global music accessibility', 'label': 'Phenomenon'}, 'name': 'enabled'}, {'startNode': {'name': 'live music broadcasts', 'label': 'Service'}, 'endNode': {'name': 'global music accessibility', 'label': 'Phenomenon'}, 'name': 'enhanced'}, {'startNode': {'name': 'music recordings', 'label': 'Product'}, 'endNode': {'name': 'global music accessibility', 'label': 'Phenomenon'}, 'name': 'facilitated'}, {'startNode': {'name': 'radio broadcasts', 'label': 'Technology'}, 'endNode': {'name': 'live music broadcasts', 'label': 'Service'}, 'name': 'provided'}, {'startNode': {'name': 'gramophone records', 'label': 'Product'}, 'endNode': {'name': 'music recordings', 'label': 'Product'}, 'name': 'included'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Alexander Scriabin', 'label': 'Person'}, {'name': 'Claude Debussy', 'label': 'Person'}, {'name': 'Gustav Mahler', 'label': 'Person'}, {'name': 'Richard Strauss', 'label': 'Person'}, {'name': 'Modernism', 'label': 'Movement'}, {'name': 'Post-Wagnerian', 'label': 'Movement'}, {'name': 'Musical Form', 'label': 'Concept'}, {'name': 'Tonality', 'label': 'Concept'}, {'name': 'Orchestration Techniques', 'label': 'Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'Alexander Scriabin', 'label': 'Person'}, 'endNode': {'name': 'Modernism', 'label': 'Movement'}, 'name': 'was a key figure in'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Modernism', 'label': 'Movement'}, 'name': 'was an important figure in'}, {'startNode': {'name': 'Gustav Mahler', 'label': 'Person'}, 'endNode': {'name': 'Post-Wagnerian', 'label': 'Movement'}, 'name': 'was included in'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Modernism', 'label': 'Movement'}, 'name': 'was known for'}, {'startNode': {'name': 'Alexander Scriabin', 'label': 'Person'}, 'endNode': {'name': 'Musical Form', 'label': 'Concept'}, 'name': 'experimented with'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Musical Form', 'label': 'Concept'}, 'name': 'experimented with'}, {'startNode': {'name': 'Gustav Mahler', 'label': 'Person'}, 'endNode': {'name': 'Musical Form', 'label': 'Concept'}, 'name': 'experimented with'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Musical Form', 'label': 'Concept'}, 'name': 'experimented with'}, {'startNode': {'name': 'Alexander Scriabin', 'label': 'Person'}, 'endNode': {'name': 'Tonality', 'label': 'Concept'}, 'name': 'explored new approaches to'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Tonality', 'label': 'Concept'}, 'name': 'explored new approaches to'}, {'startNode': {'name': 'Gustav Mahler', 'label': 'Person'}, 'endNode': {'name': 'Tonality', 'label': 'Concept'}, 'name': 'explored new approaches to'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Tonality', 'label': 'Concept'}, 'name': 'explored new approaches to'}, {'startNode': {'name': 'Alexander Scriabin', 'label': 'Person'}, 'endNode': {'name': 'Orchestration Techniques', 'label': 'Technique'}, 'name': 'innovated in'}, {'startNode': {'name': 'Claude Debussy', 'label': 'Person'}, 'endNode': {'name': 'Orchestration Techniques', 'label': 'Technique'}, 'name': 'innovated in'}, {'startNode': {'name': 'Gustav Mahler', 'label': 'Person'}, 'endNode': {'name': 'Orchestration Techniques', 'label': 'Technique'}, 'name': 'innovated in'}, {'startNode': {'name': 'Richard Strauss', 'label': 'Person'}, 'endNode': {'name': 'Orchestration Techniques', 'label': 'Technique'}, 'name': 'innovated in'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Schoenberg', 'label': 'Person'}, {'name': 'Berg', 'label': 'Person'}, {'name': 'twelve-tone technique', 'label': 'Technique'}, {'name': 'Moses und Aron', 'label': 'Opera'}, {'name': 'Lulu', 'label': 'Opera'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'schoenberg', 'label': 'Person'}, 'endNode': {'name': 'moses und aron', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'schoenberg', 'label': 'Person'}, 'endNode': {'name': 'twelve tone technique', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'moses und aron', 'label': 'Opera'}, 'endNode': {'name': 'twelve tone technique', 'label': 'Technique'}, 'name': 'employs'}, {'startNode': {'name': 'berg', 'label': 'Person'}, 'endNode': {'name': 'lulu', 'label': 'Opera'}, 'name': 'composed'}, {'startNode': {'name': 'berg', 'label': 'Person'}, 'endNode': {'name': 'twelve tone technique', 'label': 'Technique'}, 'name': 'used'}, {'startNode': {'name': 'lulu', 'label': 'Opera'}, 'endNode': {'name': 'twelve tone technique', 'label': 'Technique'}, 'name': 'employs'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'The Grascals', 'label': 'Band'}, {'name': 'Mountain Heart', 'label': 'Band'}, {'name': 'Bluegrass', 'label': 'Subgenre'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'the grascals', 'label': 'Band'}, 'endNode': {'name': 'bluegrass', 'label': 'Subgenre'}, 'name': 'belongs to'}, {'startNode': {'name': 'mountain heart', 'label': 'Band'}, 'endNode': {'name': 'bluegrass', 'label': 'Subgenre'}, 'name': 'belongs to'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Electric and Electronic Technology', 'label': 'Technology'}, {'name': 'Sound Recording', 'label': 'Process'}, {'name': 'Art Music Production', 'label': 'Application'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'electric and electronic technology', 'label': 'Technology'}, 'endNode': {'name': 'sound recording', 'label': 'Process'}, 'name': 'used for'}, {'startNode': {'name': 'sound recording', 'label': 'Process'}, 'endNode': {'name': 'art music production', 'label': 'Application'}, 'name': 'applied to'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Phonograph', 'label': 'Invention'}, {'name': 'Phonograph players', 'label': 'Technology'}, {'name': '1877', 'label': 'Year'}, {'name': 'Mid-1890s', 'label': 'Time Period'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'phonograph', 'label': 'Invention'}, 'endNode': {'name': '1877', 'label': 'Year'}, 'name': 'was invented in'}, {'startNode': {'name': 'phonograph players', 'label': 'Technology'}, 'endNode': {'name': 'mid 1890s', 'label': 'Time_Period'}, 'name': 'were mass-marketed in'}, {'startNode': {'name': 'phonograph players', 'label': 'Technology'}, 'endNode': {'name': 'phonograph', 'label': 'Invention'}, 'name': 'are based on'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Playing Music at Home', 'label': 'Process'}, {'name': 'Sheet Music', 'label': 'Data Structure'}, {'name': 'Singing', 'label': 'Skill'}, {'name': 'Playing an Instrument', 'label': 'Skill'}, {'name': 'Reading Music', 'label': 'Skill'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'playing music at home', 'label': 'Process'}, 'endNode': {'name': 'sheet music', 'label': 'Data_Structure'}, 'name': 'uses'}, {'startNode': {'name': 'playing music at home', 'label': 'Process'}, 'endNode': {'name': 'reading music', 'label': 'Skill'}, 'name': 'requires'}, {'startNode': {'name': 'playing music at home', 'label': 'Process'}, 'endNode': {'name': 'singing', 'label': 'Skill'}, 'name': 'requires'}, {'startNode': {'name': 'playing music at home', 'label': 'Process'}, 'endNode': {'name': 'playing an instrument', 'label': 'Skill'}, 'name': 'requires'}]}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Breakdowns', 'label': 'Music Technique'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-1] Aie; there are some isolated entities without relations [Entity(name=breakdowns, label=Music_Technique, properties=embeddings=array([ 0.00383226,  0.00413616, -0.01860799, ..., -0.01861803,\n",
      "        0.00177538, -0.00272942]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-2] Aie; there are some isolated entities without relations [Entity(name=breakdowns, label=Music_Technique, properties=embeddings=array([ 0.00383226,  0.00413616, -0.01860799, ..., -0.01861803,\n",
      "        0.00177538, -0.00272942]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO][ISOLATED ENTITIES][TRY-3] Aie; there are some isolated entities without relations [Entity(name=breakdowns, label=Music_Technique, properties=embeddings=array([ 0.00383226,  0.00413616, -0.01860799, ..., -0.01861803,\n",
      "        0.00177538, -0.00272942]))]. Solving them ...\n",
      "{'relationships': []}\n",
      "[INFO] Verification of invented entities\n",
      "[INFO] ------- Extracting Entities from the Document 1\n",
      "{'entities': [{'name': 'Cost', 'label': 'Concept'}, {'name': 'Lower Incomes', 'label': 'Demographic'}]}\n",
      "[INFO] ------- Extracting Relations from the Document 1\n",
      "{'relationships': [{'startNode': {'name': 'cost', 'label': 'Concept'}, 'endNode': {'name': 'lower incomes', 'label': 'Demographic'}, 'name': 'are unaffordable for'}]}\n",
      "[INFO] Verification of invented entities\n"
     ]
    }
   ],
   "source": [
    "grouped_music[\"Triplets_From_Factoids\"] = grouped_music[\"Factoids\"].apply(lambda x: extract_triplets_from_factoids(x))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "grouped_music[\"Triplets_From_Original_Sentences\"] = grouped_music[\"Combined_Sentences\"].apply(lambda x: extract_triplets_from_original_sentences(x))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Save the two datasets\n",
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The samething applies for grouped_cs dataset"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pickle\n",
    "\n",
    "with open(\"./grouped_music_.pkl\", \"wb\") as file:\n",
    "    pickle.dump(grouped_music, file)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "grouped_music.to_excel(\"./grouped_music.xlsx\", index=False)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "venv-test",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
